Sure, but healthy foods contain more nutrients, that’s why they can be called healthy. So fueling your body to excess with a lot of nutrients will lead to a much better functioning body than doing the same with garbage
And as you know, fueling the body with excess macronutrients is unhealthy. Indeed, eating a diet poor or absent in micronutrients is bad for you, but also quite rare.