Masterbation & miscarriage

I miscarriage about 6 weeks ago, ive been lightly spotting now for a week or so not having a full flow as weeks prior! Would it be safe to masterbate instead of sex?

EDIT: just to play with my clit no toys inserted or anything