Endometriosis

I was diagnosed with endometriosis after hernia surgery. Am I able to get pregnant?