Yes—it is now widely accepted. A hard core of purists insist on 'he or she' and its variations or go out of their way to rephrase the sentence to avoid the problem. In this case there is a simple solution: 'When people go to sleep they go through three stages'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.