I had sex a week after Miscarriage

Sheila • Mommy to Cassidy and Isaiah
I miscarried at 5weeks and then stopped bleeding a week later. Thing is my husband and I couldn't keep our hands off each other so we had sex a week and a half later. I know my doc recommended to wait 3 months but oh well? Any risks??