It matters for the very top school, but as drizzt said, not as much as people would like. You may get slightly more leeway with your GPA if you come from schools known to have very harsh curves (e.g, UPENN) but 3.7 from state U is still better than 3.2 from an ivy.