Turning off the AC is usually helpful and sometimes required to safely investigate some of the possible issues with an AC system not cooling. If the thermostat setting is the issue, it’s not necessary to turn off the AC.