Yes definitely it is a problem if you are having irregular periods you should know the cause of it. causes can be many like
thyroid disorders, hormonal imbalance, Polycystic ovarian syndrome, ovarian cyst, medications, pregnancy.. consult a gynecologist for a precise opinion