Yes, this is perfectly legal: an officer does not to personally witness an infraction to pull over, ticket, or even arrest someone; no law or rule of court requires the officer who saw the infraction to personally pursue or stop the violator; and officers from different jurisdictions may cooperate. If you appear in court and fight the ticket, the officer who actually saw the infraction would need to appear, however.