Is it okay to take the pill an hour early?

I recently started taking the pill but I started taking it at 10:30 pm and now that I have early morning classes I have to go to bed early so I was wondering if I could take the pill at around 9pm instead