IUD? Does ir work?

How safe is an IUD? Just once I start having sex, though it's not planned anytime soon, I want to know what to get so I can ask my mam can I get it done