I know some people in law enforcement. If you’re in the way and not yielding, this is a no-brainer. Get the hell out of the way. You’re actually delaying them from doing their job, in effect.
Most of the time, unless they are actual traffic enforcement, cops pull you over for other reasons, like making sure you’re not DUI or suspicion of other crime, stolen vehicle, etc.
But if it really was traffic cop, that’s their job exclusively, to ticket violators. Sucks.