No it doesn't matter. What's most important is that you are interested in the research subject and feel comfortable with your supervisor and the type of supervision he/she will give you. Also don't forget that even a (generally) lowly regarded university could be highly regarded in specific specialisms.