Sex after a miscarriage?

Hello I had a miscarriage last Thursday I was 6 weeks I bled from Wednesday last week until about Tuesday and now I’m just spotting but only a little bit of pink blood when I wipe. Does anyone know if it’s okay to have sex again?