Yes, you can definitely contest a ticket given you by a police officer.  You can contest the ticket in the Traffic Court.

The Traffic Court has original jurisdiction to try without jury any and all violations of vehicle and traffic laws constituting an infraction. The Court’s jurisdiction is governed by the procedure in criminal proceeding in magisterial courts.

Appeal from the decisions of the Traffic Court is governed by the procedure for appeal from the decisions of Magisterial Courts. Appeal therein lies squarely before the Circuit Court in the county where it is constituted and exercises its jurisdiction.