That simple statement is not true, but just like much commonly held beliefs, there is an element of truth in it. A Google search will help you find many articles, particularly on BB sites, that show that your most anabolic phase (muscle building) is when you are sleeping at night.
You should avoid filling your gut with massive loads of high GI carbs late at night though, since your activity level is low and your body will take some of that and store it as fat.
Eating a small, yet balanced, meal an hour or two before bed is actually a very good thing to do.