I wasn't ready for sex

It's been a few days after my miscarriage. I had to get a D&C done. It was traumatic for me and I regret it all. I regret thinking I was ready for sex. I'm just 17. I wasn't ready. No, my boyfriend didn't pressure me. I thought I was ready. This is the result of having sex and I wasn't ready for it. That was the worst moment of my life and I never want to experience it again. I was on birth control and I take it perfectly. I'm shocked and distraught.