Well I've watched a lot of Star Trek and my answer is that it depends on the wormhole. There are some wormholes like the one on deepspace 9 that are completely stable and others where the other end of the wromhole moves. Like that one episode of the next generation where the two frengi guys stuck in the delta quadrant.