The depth of a pool does not necessarily determine whether a fence is required around it. Instead, the requirement for a pool fence is typically based on the height of the pool walls, local building codes, and safety regulations. These regulations can vary depending on the location, some jurisdictions require a pool fence to be at least 4 feet tall to prevent young children from accessing the pool unsupervised. The fence should also have a self-closing and self-latching gate to further enhance safety measures. It is always best to check with local authorities to determine the specific requirements for pool fencing in your area.