If you're exposed to significant radiation, your thyroid will absorb radioactive iodine (radioiodine) just as it would other forms of iodine. The radioiodine is eventually cleared from the body in urine. If you take potassium iodide, it may fill "vacancies" in the thyroid and prevent the absorption of radioiodine.
Source: Mayo Clinic