If you mean oxygen, hydrogen, nitrogen, air - only when cooled to below critical temperature, -140°C for air. Propane, eg has critical temperature 96°C so can be liquefied by pressure alone.
In a freezer, the refrigerant must be liquid at the P and T in the condenser (heat dump grid), and gas at...