Sex After Miscarriage

Wildkittenrae
I just had a miscarriage, found out Sunday but was bleeding for the last week and a half. Was only 3 or 4 weeks. I stopped bleeding yesterday and my hcg levels day before yesterday were 18 so they are going down. My bf and I had sex twice today and I didn't think about whether it would be safe to or not. Do I need to know anything? Should I have waited? We didn't have sex to try and conceive, just the comfort, pleasure, and intimacy. But we didn't use protection. This is my first (pregnancy) miscarriage and I don't really know anything about it.