Sex after IUD

When did you have sex after getting an IUD? My doctor said two weeks but the IUD insert says 24 hours. Why would I need to wait if I wear a condom?