No, it's a myth.
Generations of kids have been told to wait 30 minutes or an hour after eating before swimming, supposedly because digestion pulls blood away from the muscles and causes cramps that could lead to drowning. There's no evidence for it.
Digestion does increase blood flow to the stomach, but not enough to stop your arms and legs from working. Medical reviews and organizations including the American Red Cross have found no cases of drowning linked to swimming on a full stomach. At worst, a big meal before hard exercise might leave you feeling sluggish or cause a mild side stitch, the same as running after lunch.
The real dangers around water are different: swimming alone, alcohol, strong currents and lack of supervision for children.
So if you've just had a snack at the pool, go ahead and jump in. If you've eaten a huge meal, you might just feel more comfortable taking it easy for a bit.