You will have to enter your legacy surname again and may have to pick something else if it is taken on that server, but all legacy purchases (like more experience for space missions) and unlocks (like Jedi Knight buff on all classes) and your legacy level (Example: 50) will stay purchased and unlocked for you though.