For weight loss - no, it doesn't matter. 1400 calories of twinkies is the same as 1400 calories of a balanced diet.
However, yes, your body will know the difference.
You need certain levels of protein, carbs and fat, as well as all of the vitamin letters, potassium, magnesium, selenium, and a host of other isms that your body requires for healthy function.
A balanced diet from all of the food groups will generally provide what your body needs. An unbalanced diet (shakes for two meals and whatever you want for a third, say), would not. The consequences depend on what's missing and what the consequences of being low in that are.
Deb, in New Zealand