Electric car key broken from water damage. If I get a new circuit board and get it programmed to the car, will that work? Or can it still be broken?

Electric car key broken from water damage. If I get a new circuit board and get it programmed to the car, will that work? Or can it still be broken?
Post Opinion