Miscarriage with Endometriosis

I have endimetriosis and was able to conceive naturally after 6 months of trying, unfortunately we ended up miscarrying. I'm curious if there is a connection with endimetriosis and early miscarriages. We're trying again and I'm scared that another miscarriage will happen if I get pregnant again.