Yes, basicly, the British decided that immigration and independence is more important than their own economy, not to mention the future of their own country. What UK accomplished by voting leave is removing their own voice within the European Parliament while still having to abide a majority of the EU laws. They also most likely gave Scotland the push needed in order to vote independence from UK. In other words, UK shot their own foot. I'm not surprised though, after voting leave they had to go home and Google "What is the EU?" and that really speaks a lot about why the voting ended the way it did.