IUD and morning after pill

Priscilla

I need help! I have had my IUD for 5 years and will be needing it to get replaced this year. I’ve recently had unprotected sex and he came in me. I’m worried and thinking I should take the morning after pill. Is it safe? Would there be any contradictions?