Periods

Is it normal for period days to be different each month? like 5 one month 7 the next and 4 the next month while on the pill?

Also would this have anything to do with having sex for the first time this month? I’ve been worrying