Can you eat whatever you want on a calorie deficit?

Calorie counting in the traditional sense ignores the sort of calories you consume. You can eat whatever you want as long as you remain within your daily calorie allowance, which includes sweets and processed foods.