So I'm not understanding it correctly, do you suddenly become consious in a dream if you do a reality check and realize that it's a dream state?

Or this will only happen if you've had your proper amount of 5-6 hours before attempting to lucid dream?