Depending on the make of your car, It can be done ,but it will cost.$$$$.
I believe if you go to the service center and request a new key fob, they can do it for you. But, beware: you may have to pay a fee for replacement.
Thanks! Your answer is awaiting moderation.