When can we start having sex after naturalmiscarriage?

I’m going to ask my dr tomorrow but am curious.

Can we start once I stop bleeding? Or do we have to wait longer? We haven’t had sex in months due to my pregnancy being so rocky, and we’re both anxious to get back to it.