Yes, some do. It really depends, but a lot of the people I talked to were adamant their best work in terms of coding comes from off-peak hours at the office.
And why do you think a late-night bout of work has to be crazed and caffeine-fueled? You can only pack so much productive time in the day, you won't get more hours from working at night. But you might get better hours if you start working at 4pm instead of 9am.
At the end of the day, it depends.