Can someone pls help

Anne
my doctor prescribed me one month of birthcontrol, so I'm not sure how or when to stop it.. If I get my period before i actually finishing all the " sugar pills " do I stop once I get my period or do I continue to finish the complet pack?..