No! There are dogs who can swim and dogs who can be taught to swim but some breeds should be kept away from water.
Water spaniels, golden retrievers, Irish setters, English setters, and Newfoundland are good swimmers. At the other end of the spectrum are breeds like bulldogs, dachshunds and boxers. Their short legs are not good enough to keep them afloat.
Breeds that have short faces, such as the pug, also have a very hard time swimming since they fatigue easily. Small dogs such as the Maltese and Chihuahua are sometimes good swimmers, but may become easily chilled or frightened, which can increase the risk of drowning.
Some dogs may have the physical capacity to swim, but have a fear of the water and they panic quickly, which makes drowning much more likely.
And even if your dog is not good at swimming you can still enjoy some water fun – there are many different life vests and jackets that can keep your dog safe.