That's part of the problem, but we also have a problem with limited medical schools in general and with those schools charging through the nose because of that scarcity.
I have a nephew training to be a doctor now. He's looking at $500k in student loan debt by the end. That's a major problem.