Also known as the morning after pill, emergency contraception can stop you getting pregnant after unprotected sex. You need to use emergency contraception within 3 to 5 days of having unprotected sex. The sooner you use emergency contraception, the more effective it usually is.