periods

so I have an irregular period, I’ve heard that if you get on the pill, it can help your period come regularly. is this true?