International undergrad to grad school in US?

I’m in high school and I’ve begun looking at colleges. I’m considering a few international schools- mainly McGill, University of Toronto, and University of Edinburgh. Though I’m not completely sure what I want to do with my life, I am particularly interested in attending law school in the United States (I’m from the US). Does it matter if I get my undergrad degree internationally, or should I stay in the US if I want to go to law school in the US?