Surgery during early pregnancy?

Jennifer
Hello! Has anyone undergone surgery during the first couple weeks of pregnancy? I am not even sure if I am pregnant yet. My period isn't due until the 13th. I took a test the day of my surgery, and it was negative. Looking at my glow tracker, if I am, I would be just 3 weeks today. I am taking Vicodin for the pain. I am hoping that if I am pregnant I didn't just harm my maybe baby. Am I worrying too much??? Thanks ladies!!!!