No, onion is toxic for dogs. It contains compounds called N-propyl disulfide that damage red blood cells and cause anemia in dogs.