Perfect analogy.
And yet, they actually DO give out speeding tickets at car races, if you speed down the pits, or come out too quick, or pass at the wrong place, or violate any other rules. Just like the military code of justice.