You can always get a ticket for a traffic infraction, whether it holds up in court when challenged is the question. Depending on the facts of your case (more detail would be needed), then there's a possibility that you could have a defense for the citation. You may want to consult with a traffic violations attorney.
It will not hurt to contest your citation. Each of the courts here in San Diego operate differently when it comes to traffic tickets. You should contact an attorney familiar with the traffic court here in San Diego to see if it would be worth contesting your ticket.