Whether a pool adds to a house’s resale value depends on the neighborhood. If more than half of the houses have pools, then it’ll be easier to sell a house with a pool.
OTOH, if pools are rare where you live, selling a house with a pool may be a PITA. Regarding small kids, my cousins had fences installed, a good padlock, and only mom kept the only key for it, so they were assured of having no accidents. The kids are now 21 and 19, and the 1994-built house with a pool had to short-sold a few months back! (But that’s another story…)