If you are on a low calorie diet, it would be wise to get the majority of those calories from unprocessed, whole foods. Those types of foods tend to allow you to eat a greater volume, helping you feel more satiated (full), with fewer calories, a greater amount of micronutrients and more fibres (very important for gut health) than their more processed friends.
If you are on a very high calorie diet, then you are much more likely to be hitting your micronutient and fibre requirements anyway, so including more calorie dense, nutrient poor, processed foods in your diet is obviously fine and possibly even required to fit enough foods in, to hit your caloric intake needs.
I personally focus alot on consuming the vast majority of my calories from whole, unprocessed foods and only start adding more calorie dense, processed stuff when my calories are high enough to satisfy my usually very ravaging appetite. That’s me though and I am generally very hard to satisfy hunger wise. If you get full very easily, then as stated prior, including more processed, calorie dense things in your everyday diet would be wise.
Eat well, train hard and sleep lots.