When to have sex

When to have sex after a mmc? Bleeding stopped a week ago, but could it risk infection if I have sex before period comes back ?