When can I have sex?

I’m almost 2 weeks after having a c section. Can I still get an infection? Before having the c section I was only half a centimeter dilated. Would having sex tonight after my hubby gets off work cause an infection? Or do you think I’m clear to jump on him when he gets home 😩