Plan B.. does it work?

Will Plan B still work if you’ve just stopped ovulating? What about if you’re currently ovulating?