A permanent pool fence, unlike this partially removed mesh fence, can be a good part of your layers of protection plan around your pool.
Removable Mesh Pool Fence
Photo (c) Vincent Iannelli, MD
These twins are wearing flotation devices and are being supervised, but once they get out of the pool and get changed, the partially removed mesh pool fence won't keep them from getting back into the pool...