Birth Control

So I plan on getting on birth control after I have my daughter next month (IUD) but my question is will they put it in before I leave the hospital or will I have to come back? I’ll be having a c-section. Also, does it hurt getting it inserted?