You don't need to go through a worm hole. If the distant star system is visible, just send your ships there like you would do with any other planet. If you haven't explored it yet, go to your star and from there you can jump to distant stars.
Of course, you need to have researched distant phase jumps or something like that.