Correct, however they wear the surgical masks because they are in a sterile environment, and the mask prevents the patient from getting infected during the operation. The surgeon is not wearing the mask to prevent themselves from catching something from the patient.