Emergency contraception works best when it is taken or used as soon as possible after unprotected sex.