Nope. Only a small fraction of physicians are union members and they have very little influence over the nationwide supply.
At one point the American Medical Association (which is a voluntary professional association and not a union) lobbied Congress to restrict Medicare funding for residency programs, which are the primary bottleneck in producing more licensed physicians. But they have since reversed position, and there has never been anything stopping teaching hospitals from expanding their residency programs using other funding sources.