So--as you can see, BuuBuu, the answer is, yes! And it has to do with getting enough of the three main food groups: protein, carbohydrate, and fat--and also getting enough micronutrients (vitamins, minerals, and so on).
It would be really easy to eat 1200 cals of ice cream, but where would that leave you, nutritionally? Well, among other things, it would leave you hungry if that was all you could eat that day.
Once you start looking up how many calories are really in "junk food," you'll begin to see that it's not worth eating them when you're trying to lose weight. In fact, it's not worth eating them anyway, in my book! I mean, a
small order of fries from McD's is 230 cals... Say WHAT???

100 of those calories are fat calories.
And so on...
Jay