No, you cannot change the CD key for Star Wars Battlefront once it is in use.
A CD key is tied to a specific copy of the game, so it is not something you can swap out. If your key is not working, your best option is to contact the game's official support for help rather than trying to replace it yourself.