Pill taken whilst on period

I started my period on Sunday and it usually lasts a full 6/7 days but I had a moment and thought it was the start of my pill on the Wednesday (so 3/4 days too early) but I've taken them on time every day since, am I protected or not girlies?