If the cake does not contain chocolate, it is not toxic for dogs. However, cake contains unhealthy ingredients like sugar, fats, and wheat that are not optimal for a dog's health. ... If your dog has eaten cake, especially a large amount, keep an eye out for unusual behavior.