Sure, don’t give dogs twinkies, but for that matter, don’t give humans twinkies either. The idea makes it seem like dogs are aliens or something. Dog food ingredients are usually meat, grain and veggies, just like our meals. Food that is healthy for you is healthy for your dog, and vice versa.
Saying “food that is healthy for you is healthy for your dog” is absolutely not true, there are plenty of fruits & vegetables that are great for people, but terrible for dogs. For example, this article lists 19 fruits & veggies that are harmful for dogs - https://iheartdogs.com/10-veggies-fruits-that-are-harmful-to-dogs/
I love dogs. Some human food is fine for them. Other human food can kill them. It’s your responsibility to educate yourself as to which ones are which.