Yes, on some occasions surgery may be necessary to increase a woman's chances of becoming pregnant, or prior to assisted reproduction treatment.
In certain cases of endometriosis, fibroids, adhesions, etc., the specialist may consider surgery to be appropriate.
Tubal surgery is rarely performed, as it is more common to resort directly to in vitro fertilisation (IVF). However, in the case of hydrosalpinx, it seems that its removal by salpingectomy (surgery to eliminate the fallopian tube) prior to IVF improves the possibility of pregnancy.
Suggested for you: Assisted reproduction techniques to combat female infertility.