It is much better to use a contraceptive at the time of intercourse (condoms, pills, or even withdrawal), but if you have unprotected sex, emergency insertion of an IUD will reduce your chance of getting pregnant.