There's no guarantee that it'll be your immediate next encounter the next time you enter that particular color warp hole, but the legendary Pokemon will keep showing up until they've been caught.I just entered a wormhole with Groudon. However, I'm not ready to catch it.
If I leave, will it appear again?