It is against the law to enter an intersection when:

Do not enter an intersection if you cannot get completely across before the traffic signal light turns red. If you block the intersection, you can be cited.
DMV Writen Test