It’s only necessary to reprogram the key fob if it doesn’t work after a battery change. However, you'll need to reprogram the key, especially if you took too much time before replacing it.