Keyless remote went out, brought used keyless remote off ebay. Can I swicth on 2005 Dodge Durango

circuit board from used remote to my remote and reprogram to my vehicle?

Asked by for the 2005 Dodge Durango
just have the used one programmed to your code if it can be cleared of okd program