Yes, as long as the area doesn't have anything that would cause it to be classified as corrosive.
So if you're not running it through a chemical room you should be good to go.
If the disconnect is in the area of the pump it would be considered a Corrosive Environment.
680.14 Corrosive Environment.
(A) General. Areas where pool sanitation chemicals are
stored, as well as
areas with circulation pumps, automatic chlorinators,
filters, open areas under decks adjacent to or abutting
the pool structure, and similar locations shall be considered to
be a corrosive environment. The air in such areas shall be
considered to be laden with acid, chlorine, and bromine
vapors, or any combination of acid, chlorine, or bromine
vapors, and any liquids or condensation in those areas shall be
considered to be laden with acids, chlorine, and bromine
vapors, or any combination of acid, chlorine, or bromine
vapors.