No, but the EU heavily opposes against it. I remember the uproar from EU when Denmark wanted to reinstate border control on the border they share with Germany.
The EU does nothing about it, they have an opinion but won't do a thing. They don't like that France expels Romanians everyday but we still do it because we have the right and power to do it. It's stupid to moan about the EU when they don't have the power.