yes. Energy is a more fundamental concept than a particular scenario. Energy is often converted from one form to another. For example, consider a Carnot engine that converts heat energy into mechanical energy.
If we didn't know how to convert chemical potential energy (like gasoline) into heat energy (like combustion in cylinders), and then into mechanical energy (like spinning tires), you couldn't drive your car to the grocery store.
Work IS energy, energy IS work. Two different names for the same thing. Which, BTW, I always found annoying; just pick one. I choose "energy".