What happens?

What happens if you end up getting pregnant with and IUD in? Will the baby be ok? Will I be ok? How will they remove the IUD?