Is it possible that your password remains as it was earlier after going to the service center for unlocking
No it's not like that. It depends like if you are having an hardware problem ,they might wipe out your data and if are having an internal problem then they will wipe your data and then they will go through their procedures.