Yes, all braking starts in the rear and moves forward as far as I know. That’s the only way to do it safely.
If that’s the case how did one car pass the other? I realize if one car derailed and suddenly stopped the cars behind it would keep going and thus the accordian effect. But wouldn’t automatic emergency braking on the cars behind kick in?