does my period on the pill mean i’m not pregnant?

if I take my pills perfectly and i get my period during the sugar pill week, does that mean i’m not pregnant?