Will plan b work

I had sex last night the 16 of July and took the pill today. Isa it going to work? I'm ovulating in 3 days