I’m not sure.

I feel like I just past my ovulation week due to extreme crampy and a lot of discharge. I had intercourse 3 days ago (unprotected) and my cramps was from yesterday and it eased down today but I’m positive I ovulated . Today day 26 and my cycle is 40. Is it still too late to take plan B??