Age gap for c sections?

Tori • Married with 2 year old mini me :) B/G twins due 4/2020

Hi ladies! I just had my daughter two months ago but I was told by my doctor not to get pregnant again for another two years. I was wondering if you were told to wait a certain amount of time after having a c section.