No, onions and garlic are harmful to dogs, as they can damage their red blood cells and cause anemia.