3 weeks 1 day postpartum

Can I have sex ? I know it risk for infection what if I use a condom?