No, they do not need to stop and wait to adjust the spacing.
Let's say they run at 30 kph in the tunnel section, and the service interval is 5 min. That means, the distance between the trains in the tunnel is 30 x 5 / 60 = 2.5 km.
Then, one of them exits the tunnel, and runs on surface at 20...