Taking the pill earlier

I take my birth control at 9 am but what if I can't take it at 9 because I have an exam that starts at 8? Is it okay to take my pill 2 hours earlier ?