If the penalty for driving it was prison, yes. That would deter me from ever driving it again.
That's a deterrent, something I would otherwise be willing to do, I'm no longer willing to do because of new consequences.
I would oppose such a law as stupid and frivolous, but as long as it was law, it's not worth the risk.
If it were something I cared more about, I'd be more apt to risk it, but it would certainly deter me.