Plan B is one brand of emergency contraception pill. It prevents pregnancy after sex by stopping the release of eggs and stopping sperm from fertilizing eggs. It does NOT end pregnancy.