People did vote to join the EU, but open borders/mass immigration was part of the trade deals struck after said nations had joined. So no, knobody ever voted for freedom of movement or open borders in Europe as the people of Europe have never had a chance to vote on the matter.