Pill to regulate before ttc again

Ok so I was on the depo shot last year in March was my last shot and it was done in June my periods have not been regular since so my dr put me on the pill for two months to regulate it.. Any luck with this ladies?