Pregnant after miscarriage?

I had a miscarriage in November. I was 5 weeks. The doctor said I have to wait one cycle of my period to try again. I did that and now we are trying again. Anyone on here had a miscarriage and then got pregnant right after?