D&c anyone

Did anyone have a c-section and then a D&C and was still able to get pregnant? How long did it take? I had a C-section then a 2 1/2 years later I got pregnant again and miscarried at 5 weeks and. It's been 2 months since d&c and I'm ttc.