Many women opt to have a medical checkup and an ultrasound to ensure that all the tissues from the pregnancy have left their body. Medical professionals agree that this happens all by itself, without the need for medical intervention, in the vast majority of cases. One problem that you might encounter is that you will have irregular cycles for a while after having a miscarriage. Just like after giving birth, it is possible that you will be anovulatory for a couple of cycles, meaning that you do not ovulate. Once you get the green light from your doctor, or you stopped bleeding and if you feel ready there is no reason not to do the deed, though. You might benefit from taking ovulation tests to find out whether, and when, you are ovulating. You should also continue prenatal supplements, especially folic acid, or start again if you stopped in the meantime.
Like the study mentioned in the first paragraph suggests, you may even have a higher chance of both getting pregnant sooner, and having a healthy pregnancy. One important note is that if you don't feel ready, and have the need to grieve your lost baby for a longer stretch of time, you should not feel pressured into trying to conceive sooner than you would like. When to conceive is a very personal decision that only you and your partner can make.