How long to wait until TTC after D&C

My doctor told me to wait 2-3 months after my D&C to TTC again. Is there any risks if I were to not wait until that timeframe?