Do warehouses or other similar types of buildings need to comply with the energy code?

Any building that contains conditioned space must comply with either the IECC or ASHRAE Standard 90.1.

The IECC exempts buildings with a peak design rate of energy use for space conditioning less than 3.4 Btu/h•ft2 from compliance with envelope requirements.