That's a hit and miss thing when it comes to worms. Salt tolerance differs from species to species. It's much easier to use medication, or let the fish clear its gut normally.