Of course there is, but getting your priorities wrong is counter productive. Set the calories first based on your goal to cut/maintain/bulk, then you automatically figure out that junk food is a calorie thief and unconsciously start eating quality food, then you start adjusting your macros for body recomposition and the list goes on forever. Calories are #1 though.
Eating 3000kcal of "quality food" every day will still make you gross fat and give you heart problems. And did you know that protein also affects insulin? Insulin is essential for muscle building.
Still find it hilarious how so many people still don't understand that a caloric deficit or surplus is the #1 thing to do when trying to cut or bulk.