A small amount of plain vanilla cake occasionally might not harm your dog, but it's not a healthy or recommended treat. The sugar and fat content in cake can lead to obesity and other health issues in dogs. It's best to stick to dog-friendly treats made specifically for them.