nursing and taking mini pill

We
Has anyone gotten pregnant being on the mini pill? I asked my doctor if I could go back onto the regular birth control but she said no because I'm still nursing. I'm 7 months postpartum. I do not want to get pregnant any time soon.