Irregular, short periods?

I used to have my periods every 21 days, but after becoming homeschooled my sleeping schedule became so wack. I would stay up until 6 am and then wake up at like 2 pm, or like have several naps every day and then pull an all-nighter. And it's been like that for a year. So ever since, my period has been every 18-20 days and I'm seriously worried because sometimes I have two periods in a month. I'm afraid this might make me infertile and now that I'm off to college, I'm already working on having a normal sleep schedule. Will I have a normal cycle once I start sleeping normally?