Can I have sex at 5 weeks postpartum if I get checked by my doctor ?

I won’t be 6 weeks yet , do I wait?