Yeah. Basically the referendum was about whether the UK should be in the EU or not. If it's in, that means free movement to and from other countries in Europe, as well as easier trade between them.
However, if it's out, that means better control over the borders and immigration, and freedom from some of the silly laws the EU seems to put out.
Either way, the leave campaign won, though it differed a bit depending on the region. Wales and England outside of London mostly voted to leave, Scotland and London mostly voted to stay.
It's an old topic, but personally I thought most of the people who voted to leave were outdated racists piles of shit. They didn't vote to leave because of the migrants. They voted because they're racist scum. Especially those who have racially attacked other people.