Answer:
The kind of worms that will give dogs problems do not live in potatoes - HOWEVER - if the raw potatoes also have dirt/soil on them, the dirt/soil may contain worms, eggs, larvae, or other parasites that CAN give dogs problems. It isn't the potatoes they will get the worms from, it is the soil.