sex after miscarriage?

so i lost my baby at the beginning of this week. the bleeding has slacked off almost completely. it’s almost gone. we had sex last night even though i was afraid to, but everything felt fine. do y’all think it’s okay to do that since the bleeding is almost completely gone?