Can a dog get worms from eating duck poop?

You can get worms by your dog eating poop and then licking you and then you suck on your fingers you can get worms by eating any kind of poop so dont try it