When the battery is disconnected, the check engine light may be reset, but the underlying problem will not be fixed. It is likely that the light will return if the root cause of the problem persists after reconnecting the battery. Before attempting to clear the check engine light, it's recommended to diagnose and fix the problem.