No it is not necessary. Start with Opening Salutation like Dear Sir, Dear John, Write body paragraphs and end with appropriate closing like Yours faithfully or similar. Refer it IELTSLiz Writing task 1 for more details. Thats the source I am using to prepare. Best of luck !!