A letter written during the time a historical event occurred is a useful primary source document.
Primary source documents are the most original way to understand Historical events.
If it was the letter written for discussing analysing the same historical event after the occurrence of the event, it would have been considered as a secondary source.