You can sleep the whole night through and still become lucid, but for beginners they have a much better chance of lucidity if they wake up during the night.