Can you get pregnant if...

If you have sex the night before an exploratory laparoscopic surgery? I had a blood pregnancy test the morning before surgery and it was negative. But that night my husband and I had sex. So the next day I was still assuming there was no way I could have been pregnant. But I also was supposed to ovulate the day of surgery. (Don’t know if I really did or not because of the surgery.) but I think I had implantation bleeding today and some cramping. I haven’t had any problems from the surgery. Nothing was removed or anything, they just looked.