could this be related to menstrual cycles?

So i had my period and it was 2 days late and it lasted 5 days which is a day earlier than normal which is 6. And then 2 weeks later I started feeling bloated and it's been going on for like a week now and this feeling of having gas won't stop and my period is supposed to arrive in like 5 or 6 days ... I'm just concerned if I should go see a doctor for this or is my diet the reason for all of this