Just found out I’m pregnant

I literally just found out an hour ago . On thanksgiving I woke up and felt like I had to use the bathroom .. my stomach was hurting soooooo bad ! I never had that pain before (expect for contractions. I have one baby already) I was on the toilet for almost 2 HOURS !! , POOPING ! I never had that much poop come out of me .. then I threw up, it was clear .. maybe because I just woke up and didn’t eat anything. Idk . But I thought it was a little stomach bug cause I felt better afterwards , can that have harmed the baby? ( the pain in my stomach) Or was that my sign that I was pregnant?? After that I had no other problems . Nothing at all ! I still don’t I only took a test because I had it sitting around and I knew my boyfriend sucked at pulling out this month .