Medicines used for anesthesia affect the fetus, so surgery is not allowed for pregnant women.