Can miscarriage cause Endometriosis?

Nicola • Married. 29 years old. Mmc at 11 weeks July 2015 and mc at 4+3 weeks Nov 2015. Pregnant with baby girl due 30.07.17 ♡♡
My periods have always been gpod - painless with medium flow lasting 4-5 days. Since my miscarriage 9 weeks ago I've had bad pain with my periods and spotting brown beforehand. I've had twinges of pain and tenderness throughout my cycles but worse during bleeding. Could it be that my miscarriage has caused endometriosis or is this normal after a miscarriage? I'm so worried x x