Rhabdo's diet is basically the same as shrimp... biofilm and dead and decaying matter... so if you come across a dead shrimp, then yes, other shrimp and even rhabdos will consume them.
You said the worms are swimming? Could this be detritus worms? These would swim like a snake. Or maybe nematodes? Those squiggle in the water column.