Plan B question

Alright, so, I had sex with my boyfriend and the condom broke. So I took the 1.5 mg levonorgestrel tablet that I had on hand about 2 1/2 hours after. I'm ovulating in 3 days and I just wanted to know if it would still be effective even though I'm ovulating so soon. 😊
Also, if I took ibuprofen for cramping, would it affect the plan b?