Not always.  Turning it completely off can lead to a larger temperature swing when you return home, forcing the AC to work harder to cool things down again.  Setting the thermostat a few degrees higher while you're away can be a more energy-efficient option.