@Ege20634 yes you can borrow for undergrad and then for med but as others have stated, try to limit what you must borrow for undergrad. Would it be possible for your to live at home and attend a state school in driving distance so that you would not (perhaps, depending upon your home circumstance) need to pay room and board?
Whether you end up going to med school or not, you’ll be best served by owing the least amount possible for college.