Time travel can only exist if space travel does

I realized recently that even if we were able to create a time machine we would have to know how to space travel, otherwise we would teleport in the void of space due to the movement of earth, our solar system and our galaxy