Only if you had a d&c done after miscarriage

Did it hurt when u got the surgery done to take baby out? And how long did it take to get pregnant after having it done?