Should I not major in CS?

My main goal after college is to become a dentist currently but I don’t want to be the standard bio major obviously and so I picked Computer Science as my major. I took an introductory level course my sophomore year of high school but I only managed around a C+ in the course and this was before I fixed my grades and started paying attention in school. My sophomore year GPA was a 3.1 and my junior and senior years were a 3.7 and 3.98 respectively with multiple AP’s so I have fixed my study habits. I’ve always loved computers and coding has always been interesting and fun to me but I feel like I’d get discouraged too easily and I’m afraid that its something that I enjoy but wont be good at it. I’m also afraid of doing computer science as a major and then realizing I suck at it despite my interest and then I’ve wasted precious time and points of my college GPA for dental school. Anybody have any advice?