Manned pusher sets and DPU units on unit trains do this all the time. Yes, it takes communication between the two engineers on manned pushers and the computers on a remote DPU setup. In Trainz, steam engines do this but I have not found out how to make diesels do it.
Paul