Yes! Dog treats or biscuits are pretty hard and are usually given to hamsters to help them wear down their teeth. Although wooden chews do a fine job of that, some hamsters simply refuse to use them. In that case, getting a plain dog treat (no additional flavors) for the hamster can help encourage it to bite on the treat and prevent their teeth from being overgrown.
It’s important to get a plain dog treat because not all of them are safe for hamsters. For example, dog biscuits with garlic or onion in them should not be given to hamsters as these food can be harmful to your pet hammy.
Many experienced owners milk bones which you can get online or in major pet stores. It’s quite big so a single piece should last a long time (the entire box would probably last forever in hamster-years) These are not available where I am so I got my hamster another type. You can see my winter white dwarf hamster, Flaxseed, chewing on a dog treat in the photo. That was taken weeks ago and right now, it’s still a whole piece with lots of bite marks on it (:
Dog treats may also be a good source of protein although I would not recommend anyone giving it to their hamster as food. Some hamsters may enjoy the treat so much that they eat the treat instead of their regular food. If you notice your hamster going through the biscuit really quickly and not touching their food, it might be wise to remove the treat for a while. This is important because the treats do not contain all the nutrients that hamsters require to be healthy.
That said, it’s rare for a hamster to eat only the dog treat instead of their regular food mix (I’ve only heard it happen once). All four of my dwarf hamsters enjoy chewing on dog biscuits, but never as their main source of food.