Hotels have published check-in and check-out times. However, generally speaking there's some flexibility there. Most hotels will let you check-in significantly earlier than the published check-in time, assuming a room is available and has been cleaned.