Contraceptive Pill

Is it okay if I take the contraceptive pill for an extended amount of time just so I don't get my period?