Police can pull you over whereever, even outside of Jurisdiction, they cant however arrest you outside, only detain you till the proper officer arrives.

City Police are bound by their City Limits

Sheriffs/State troopers can arrest you anywhere inside Said State.