Yes I’m sure you can, if you know how to “teach” swimming. Do you know the terms used? Methods that help children? The steps needed to build on from the beginning? It’s not a matter of getting in the water and saying ok “ do this with your arms, kick your legs and don’t forget to breath” there’s a lot more to it! It’s little steps. And even if you do know how to swim it for mean you can teach it easily! Not trying to be negative or rude. I’m just stating facts.
They aren't really facts, though, just your opinion - plenty of others on here have taught their kids to swim (me included) without getting bogged down in 'terms'.
In the same way that I didn't 'teach' mine to walk, I haven't 'taught' them to swim, although I do think that going to the pool regularly and encouraging them to build up their confidence by trying different things in the water has contributed to it. I am a bit of a water baby though, so will happily spend a couple of hours at the pool (nearly 3 today in fact) which I think helps.
I am now showing my oldest different strokes at six, and his friend who has had lessons since she was 3.5 is still scared to put her face in the water, so it really does depend on the child as well as the teacher!