Plan B

I had sex on my 7th day of ovulation but the next day I took a plan b will it work ? I was just wondering because I’m getting cramps and back pains like it’s coming