Miscarriage

Tamika
I recently got pregnant and had a miscarriage at 8 weeks, my doctor told me to wait 6 months before trying again and I was just wondering if that's necessary