Conservation of mechanical energy (COME) is valid when there are no dissipative/non-conservative forces present. COME is different from conservation of energy (COE) which is generally true in all cases in classical Physics including those involving dissipative/non-conservative forces.