Can I have sex if I’m just spotting

I had a miscarriage at 6 weeks, I’m spotting now after 6 days it’s almost nothing is it safe to have sex again?