Is Yale worth it ???

I got some financial aid but I’d still need to pay 28k a year. I’d need to take out a loan of like 18k.

My future goal is to become a dentist so like is it worth the undergraduate loans if I have to consider dental school loans too???

I got in as a bio major!