What Nix said. It's not the "root of all evil", duh, but just going "lol malthus" is not actually an answer, and certainly not any sort of answer that is conscious of basic science.
And of population history prior to the agricultural breakthroughs of recent centuries...
Yeah. We've managed to massively up our planet's carrying capacity through better farming techniques and stuff like petroleum-based fertilizer... but that doesn't mean we've negated the concept of carrying capacity, not any more than the Wright Brothers repealed the laws of gravity.
And of course those petro fertilizers won't last forever.
And, even if they did, there's the danger of desertification, sea level rise, aquifer depletion, etc. clawing back many of our gains even in the absence of an energy crunch...