When can I go on birth control after D&C?

I had another recurring miscarriage and just had to get a D&C. When can I start on birth control pillls? I don’t want to try naturally anymore until I get testing done.