Yes, you must write a resignation letter if you are quitting your job as it will serve as an official notification of your resignation to the employer as well as an official record of your employment tenure. If you leave a company without notice, then you might not receive your experience letter and other company benefits. Also, when you pursue a new job, you will be required to submit your resignation letter and experience certificate of your former company (if you mention to have work experience).