Hernia

I went to the doctor today and he said I may have an ingoidal hernia that may require surgery... Could this affect a possible pregnancy?