Premium credit in trading account

Let’s say if i am writing a put option, when will the premium amount credited. Immediately after my write order executed?

Yes !

Thank you @Spaceship

One more follow up question, if my put write option expired OTM, that is i am not squaring off, still the premium remains in our account?

Yes entire premium is yours.

Thank you very much @Spaceship

You are welcome!