Dental check at medical

I’ve just been booked onto my medical, and I’m aware that I have 2 cavities and I’ve been trying to get a dentists appointment for months now but I’ve had no luck. Will this be a problem at my medical?

EDIT: thankfully I was able to find a new dentist, already had my first appointment and now I’ve got my fillings booked for monday! Thanks for everyone’s responses!