That’s what a surgeon says:
First, let’s be clear. The premise that surgeon’s wearing masks serve as evidence that “masks must work to prevent viral transmission” is a logical fallacy that I would classify as an argument of false equivalence, or comparing “apples to oranges.”Although surgeons do wear masks to prevent their respiratory droplets from contaminating the surgical field and the exposed internal tissues of our surgical patients, that is about as far as the analogy extends.
https://bsnews.info/if-masks-dont-work-then-why-do-surgeons-wear-them-a-surgeon-explains/