Besides the milk and eggs, flour and sugar are the main ingredients in a cake, which are excellent sources of carbohydrates (which do provide your body, brain, and muscles with energy). As long as you don't overdo it, you will get a healthy boost of energy to help keep you awake.