Needing advice

So my periods have been irregular to the point I haven’t had it for almost 2 years. The doctor recommended me to get on birth control and finally started my period after a month. Has anyone else done this and then how long until you tried for a baby?