Sex and miscarriage?

Chelsea
I had a miscarriage two days ago, and  I am still having light bleeding. Well my SO and I couldn't help ourselves so we decided to have anal sex (sorry tmi) and halfway through we ended up switching to vaginal. Is this safe to do?