irregular periods, birth control pills

Marissa
I was having irregular periods after getting off the depo, so I went to the doctors and my doctor prescribed me birth control pills to regulate my period. Did any of you get pregnant taking the pills, or how long did it take to get pregnant?