That's not the law in California. It is perfectly legal to be within an intersection when the light turns red. It's only illegal to
enter an intersection while the light is red.
Source 1: California Driver Handbook
http://apps.dmv.ca.gov/pubs/hdbk/traff_lgts_sgns.htm
- - -
Solid Yellow – A yellow signal light means "CAUTION." The red signal is about to appear. When you see the yellow light, stop if you can do so safely. If you cannot stop safely, cross the intersection cautiously.
- - -
The "stop if you can do so safely" wording is safety advice, and sound advice too. But it's not a statement of law.
Source 2: California Vehicle Code
http://www.leginfo.ca.gov/cgi-bin/displaycode?section=veh&gr...
- - -
21452. (a) A driver facing a steady circular yellow or yellow arrow signal is, by that signal, warned that the related green movement is ending or that a red indication will be shown immediately thereafter.
21453. (a) A driver facing a steady circular red signal alone shall stop at a marked limit line, but if none, before entering the crosswalk on the near side of the intersection or, if none, then before entering the intersection, and shall remain stopped until an indication to proceed is shown, except as provided in subdivision (b).
- - -
Note that the yellow light is described only as a warning, with no mention of it being illegal to enter the intersection while the light is yellow. And there is no mention of it being illegal to be inside the intersection when the light turns red, only that you can't enter on a red light.
I can't speak for other states, but I suspect that the laws in many of them are similar.