No, giving milk to dogs will not give them worms. Keep in mind though, once dogs are no longer puppies, most of them lose the ability to properly digest/breakdown dairy products so it is not really recommended that you give them milk.
What helps puppies get rid of worms?
Pumpkin Seeds Pumpkin seeds are an extremely effective deworming agent because they contain an amino acid called cucurbitacin. This paralyzes the worms making them easily eliminated from the intestine. They can be fed whole as a treat or you can grind them into a fine powder and add to Fido's food.
What to feed your puppy when they have worms?
Fermented Vegetables One of the safest and most convenient ways to get rid of your dog's intestinal worms is to feed them fermented vegetables, such as kimchi and sauerkraut. They're easy to obtain since all you have to do is make a quick run to the grocery store.
More useful articles on a similar topic 👇
Can I feed my puppy after deworming?What can I get for my puppy who has worms?