About getting pregnant

I've tried getting pregnant for two years now and nothing's happen started getting upset n think I couldn't get pregnant but went to the doctors n they put me on birthcontrol the doctor said I had pcos and my periods are irregular but now since I've been on the bc for about 7 months now my period have been regular coming every month . Has anyone else had this problem?