Serious health problems can occur if worms in dogs are left untreated, says Dr. Jerry Klein, AKC's chief veterinary officer. Worms can be picked up from your dog's stool and contaminated soil. They can infect other dogs, and in some cases, people can contract certain types of worms.