Plan B is emergency contraception, not an abortion. Plan B and another drug called Ella work by delaying or preventing ovulation. Plan B is most effective if taken within three days after unprotected sex; Ella can be taken within five days. Both are more effective the sooner they are taken.