When can you have sex after a miscarriage?

Am I good to go once bleeding has stopped?