Yes, in a way it can matter. Here's why ..... getting involved in research during dental school is a very good thign to do and sometimes an expected thing to do in order to get accepted into some dental residency programs. Some researchers want their research assistants to have previous research experience. So, by having a biology or chemistry degree where you must do some sort of research project in undergrad, you help your chances of getting a summer research grant with one of the dental researchers at yor dental school. Is it necessary to have the dental research in undergrad to get a research position? Some schools yes and some no. No matter what, the previos research experience helps your case.