Do you need to take the pill at exactly the same time every day?

Or would it be fine to just take it every morning? Most mornings I’ll be fine to take it at the same time because I’ll be awake, but in case I accidentally sleep in, is taking it a couple of hours later than usual okay?