If all people left the Earth to live on another planet, would the ghosts move too?

Wow, that would be spooky if they did. I hope they stay behind and haunt the place for the next people to discover!