Question: is mechanical energy conserved in this case?
Answer: Law of Conservation of Mechanical Energy: The total amount of mechanical energy, in a closed system in the absence of dissipative forces (e.g. friction, air resistance), remains constant. This means that potential energy can become kinetic energy, or vice versa, but energy cannot “disappear”.