Some law schools place more emphasis on undergraduate prestige than others. For example, the top-ranked law schools in the United States, such as Yale Law School and Harvard Law School, tend to admit a higher percentage of students from Ivy League and other highly selective undergraduate institutions. However, it is important to note that there are many law schools that are not as selective in their admissions criteria and that are willing to consider students from a wider range of undergraduate backgrounds.
Ultimately, the best way to increase your chances of getting into law school is to have a strong academic record, a high LSAT score, and a compelling personal statement that demonstrates your interest in the law and your potential for success in law school. If you can also attend a prestigious undergraduate institution, that may give you a slight edge in the admissions process, but it is not a guarantee that you will be admitted to law school.