Would a coil iud help like plan b?

A week ago I had sex w/ my boyfriend and he was stupid enough to put it back in after he came Bc “he cleaned it” which is really fucking stupid of him to do. I forgot about it until I realized that I was supposed to get my period on Saturday, todays the third day of me missing it and I’ve been having really bad heart burns or chest burns for these three days. If I get a coil IUD, say I’m pregnant, would that be able to stop the pregnancy?