Yes. ANY police officer, whether in uniform or undercover, and no matter how he is transported--e.g. patrol car, unmarked car, motorcycle, foot patrol, even horse--can write a summons or ticket for any offense(s) that he or she witnesses. This may not be the usual use for an unmarked vehicle, but it is perfectly legal.