Yep, they have to come from somewhere. The AI never cheats. True it can pull in forces from its magical infinite pool of ships that exists somewhere outside the galaxy (as it does for reinforcement or for warp gate attacks), but once they actually exist in the galaxy, they act like regular ships and they have to get around with wormholes just like everybody else.