when did your period come back after miscariage

how long after miscariage is it ok to have sex again? Im miscarrying natrually, do we still need to wait?