What Dawn wrote is very true, you might not believe it but we can float naturally, learning that first in a safe space (in our depth) can give us the basis to swim.
But until then it’s okay not to go in a pool if you feel worried about it. Only go when you’re ready.