Plan b

Checked my app and it said that I was at peak fertility. I know that plan b doesn’t work during ovulation, but is it the same during your fertile window? I took the pill 2 days after we had sex