Keeping what Choppy said in mind (which is absolutely true), I would say that the answer is no. I did undergrad degrees in both physics and math. Both departments at my old school were very highly ranked in both areas. My physics education was great, but my math education was...well, average. Classical and modern physics don't change, so you could likely get the same education at a community college as at a university. In fact, research professors don't always make good teachers. My advisor once told me that he spends about 13 hours a week on his teaching, and that's when you consider preparation, classroom lectures, writing assignments, etc. Some of my fellow grad students in my department came from no-name schools, and do really well in the graduate program. I also know someone who came from a top tier school who doesn't do all that great. So I don't really see any correlation.