This came out of me last night

Me

I got on the nuvaring last month and took it out Saturday night so I could get my period. Last night I kept feeling like I had to poop, had bad cramps, and just felt very uncomfortable. I started feeling again like I had to poop and got up to go to the bathroom and then felt something come out of my vagina. It hurt as it did and I was still in pain for a little bit after but soon the pain went away. I’ve been feeling the same way I did last night but not as bad. Do I still need to see a doctor about that?