IUD as emergency contraceptive

I had unprotected sex tonight and was planning on going to get plan B in the morning. But I am getting my iud inserted tomorrow. Will the iud be used as an emergency contraceptive or do I need to go get the plan B as well?