Train carriages on spline change position and overlaps

No, you need to add an additional distance that each cart should move, depending on where it is relative to the previous one.