The answer turns on an exception to the ban. A yellow light and the raised arm of the traffic officer
both mean stop, and normally you must stop at the stop line, or without one, before the roadway you are crossing, before the railroad crossing, or before the traffic light or traffic officer. But if the signal changes when you are already close and could stop at that point only by braking hard, the rules let you keep going. Braking hard right before the line is dangerous: a vehicle behind may run into you