Can ibropufen affect implantation?

I’m 2 days from when my period is due and I’ve been cramping bad for 2 days now. No bleeding yet though. Not sure if this is implantation or menstrual. I took some ibropufen for the pain but now I’m worrying whether this will have an affect if I’m pregnant. Would this cause a miscarriage or any issues? Thanks