You can absolutely raise cattle in an energy neutral (or potentially even energy positive) way. Cattle, in nature, consume grass. Most of the energy the cows get from the grass comes from solar energy. If they're being raised on land that is not being used for anything else and no equipment or anything else is used, the area gathers more energy than it costs.
However, this is generally not how cattle is raised. In order to meet the large demands of our society other methods are used that cost more energy. That doesn't mean it can't be done, but it won't be done on a large scale.