Yes, even if terminated, you are entitled to a relieving letter stating the terms of your departure, unless contractual or legal stipulations prevent such issuance.