Sure, you have to run electricity to the bar (gotta power the fridge and the blender, after all), but you’d be running lines to power pools lights and circulating equipment anyway.
If a bar in your swimming pool sounds like a dream come true, talk to the designer about sketching it in