Yes, you can get an activation code working for a used copy of Star Wars Galaxies.
It doesn't really matter which physical copy you own. As long as you have the game legitimately installed on your PC, you can enter a valid activation code to get it running. Just make sure the code you use is genuine and hasn't been used elsewhere, and you should be all set.