Have to? No. However, if you can show video that shows that, on or near the same date/time when you got your ticket, the light was behaving as you described, you might be able to defeat the charge.
I'd suggest reviewing some of these search results.
Beyond that, traffic court is typically...