Yes, you can write a rejoin letter after you have resigned from the company but you will have to mention the reasons behind your resignation. Make sure that you have a good position in your previous employment.