IUD question

Cougar

Can you have the IUD placed directly after giving birth? I read online you can have it placed up to 48hrs after birth or 4-6 weeks after. I really want to avoid having another kid for a long while and the iud seems like the best option, however, knowing how painful it is I really don’t want to get it placed after weeks 😂 I’d rather just get it done directly after birth. Also any pros/cons about the iud would be helpful😊