Energy in = energy out.
This means even if you wanted to be environmentally conscious and take the stairs rather than using electrical energy to move the elevator, somewhere there is still energy being spent to create the food that's giving you that energy, and the electrical grid and elevator can do it at a way higher efficiency than you and the agricultural industry can, especially once multiple passengers are involved.