Endometriosis and pregnant

Hi so I’m about 4-5weeks pregnant, I’m still waiting for my first appointment. I get a lot of cramping especially on the night making me not able to sleep. I have stage 3/4 endometriosis, could this be a cause of the pain. Has anyone else experienced pain that meant you had to take it easy all the time from endometriosis?