Generally speaking, nuts are safe for dogs to eat, but they're not the healthiest choice. Nuts and legumes, like peanuts, are high in fat and dense in calories. Many dog owners use peanut butter as a training tool or treat, which is fine in moderation.