Yes. You can try straight away after stopping the pills. Have a preconception check before you start trying. A doctor cannot make out whether you were on pills unless the ovaries are very much suppressed.
Next Steps
Since you are a case of PCOD; there is a possibility that you may not ovulate ; check for Ovulation with Ovulation strips or ultrasound monitoring once you start planning for pregnancy.
Health Tips
Maintain a healthy BMI. Start on Folic Acid.