Well my friends, that is NOT the case in this situation. Late night eating or snacking can cause weight gain, and even uncomfortable sleeping. If you do get hungry later on in the night, and need a little snack to hold you off till the morning, make sure you are going for the fruits and veggies. DO NOT go for the chocolate or the boxed cereal, or even anything that has caffeine in it. These foods will not only keep you up, and make you unable to go to sleep at a normal time, but will also cause you to gain weight. I would also suggest a glass of water instead of trying to figure out what kind of food you want to eat.
When you go to bed after eating a large snack or meal, you are not giving your body any time to digest the food. Therefore, it is just sitting in your stomach while you aren't being active for X amount of hours since you are sleeping. For some, it even causes acid reflux and heartburn (take it from me, I get the WORST acid reflux if I eat something right before bed, and trust me, it is not fun). You will wake up feeling 10 times better in the morning if you go to bed without eating a heavy meal.
USE YOUR WILL POWER!