No. This is false. I helped to create two different billion-user projects at Apple: WebKit and iPhone. I was on these teams from the earliest stages and I never once came close to sleeping at the office. It’s not an essential part of doing great work.
This is how great new things are built, more often than anyone has been willing to say during the last decade's cultural revolution in Silicon Valley.