Ruptured cyst and 8 weeks.

Nikki • We have a 2 year old little boy. And due with our second boy in Jan 2016!!
I have pcos and I went to the er and in a lot of pain on my right side. I thought I was having another miscarried I've had two. But to my surprise I wasn't it was a ruptured cyst and bleeding out. I opted out of having surgery because of the risk of losing our baby. But this pain is so bad worse then child birth we have a two year old son. My ob doctor give me tylonel 3 with codeine? Has anyone ever taking this during early pregnancy was your baby born fine? I'm so scared to take it..