It absolutely is, athletes need to have specific diets to maximize their performance for example. And food can certainly raise motivation (or destroy it) depending on how it's used.
Both the quantity and quality of food matters. Specific foods also boost brain function, carbs help power through exercize, protein helps build muscle, other food substances help with sleep and mood, and so on.
'Food is just food' is not even wrong.
>You seem to have a weird relationship or perception of food if you call binging on a day to be "performance enhancing".
Doesn't sound weird at all, just unhealthy.