Yes. State Building Code defines a swimming pool as any structure that contains water over 24 inches (610mm) in depth and which is used, or intended to be used, for swimming or recreational bathing.
Setback Requirements for a swimming pool: A swimming pool must be set back a minimum of 10 feet to the water line from the side and rear lines, and 20 feet from any street line. Swimming pools are not allowed in front yards.
Fence Requirements: Swimming pools must have a fence at least 4 feet high (for a residential pool), with a self closing and self-latching gate. If the wall of the house serves as part of the enclosure, any doors leading from the house to the pool must be alarmed.