Need a little more info. It depends on the size of the snake and the size of the worms.
Worms as a rule travel fast through the digestive system.