can a cop pull you over and give you a ticket if its not in their county/city that they are HQ'd in?

like can a Cobb Co. cop give you a ticket in Fulton?