Curious

My period hasn’t came on for February so I felt like I was pregnant but wasn’t sure I took some Thera flu cause I was coughing and my throat was scratchy and I went and brought a cheap pregnant test and it tested positive I’m scared cause I took the medicine hoping I wasn’t pregnant because my period was late but I tested positive..someone help me