Depends on the cop. If he wants to be a dick then he can say it's yours and arrest you. But then if he's cool, he just might let you go.

So it's 50/50 but I wouldn't take the chance.