Endometriosis

I had a miscarriage a year and a half ago. I started getting bad pain recently and went to my ob/gyn. Going in for a consultation today for a surgery to determine if I have endometriosis. Kind of worried cause me and my partner want kids. Do you have any stories about infertile versus fertile pregnancy