sex ?

is it safe to have sex after a miscarriage ? i finally stopped bleeding & it's been a week. i was told at my last ultrasound that i had passed everything and just had to wait for the bleeding to stop. so with that being said, would it be safe to have sex ? just sex with my husband, we're not trying for a baby