Provided that both trains arrive on time.
And doing in in flight is much harder (and not legally possible), but if you would want to join/separate in the outskirts to get one into town and the other on the bypass, just the stopping and reaccelerating will cost some minutes.
In the UK this is known as "portion working" and is a routine part of some routes' timetables.
The slight difficulty doesn't come from the separation, which is easy - open the automatic coupling, drive away the front bit and then drive away the rear bit after the front has got clear - but the joining. With an intensive timetable, waiting for a (possibly slightly late) other portion can leave a train missing its booked slot into London, with knock-on delays.
Unfortunately the inverse operation isn't as easy, and it's an expensive operation, too.
What I would like to see: 1. An inter European Rail network. Possible 4 Tracks (freight and personal.
2. This trains should be able to connect and disconnect wagons automatically. Hence a fast train may ride from Lisbon , 3 wagons get disconnected outside the city in a railroad shunting yard and then continue to Madrid, the rest of the train bypasses the city and heads to the next big center.
3. See this technology widely used for the freight trains: http://www.cargobeamer.eu/
The big advantage of trains is that you can run them nuclear and with Thorium reactors in the future.