Sweets have sugar. Sugar is an easy source of energy that is absorbed pretty quickly. Most of what runners take while they're running is sugar (gels and sports drinks).  However, a pie might be a little rich.