Plan b 😩

Does plan b work if you were ovulating when you took it? I’ve read where it can mess with your uterine lining making it a hostile environment for the egg, but idk if that is true bc some sources say otherwise..