In moderation, walnuts can be safe for dogs, but avoid giving them moldy or rancid nuts. Cats aren't typically interested in nuts, but if they consume them, it's best to monitor for any adverse reactions.