In theory? Yes. In practice? Heck no...
Mass and energy are equivalent. This is the essence of Einstein's famous equation $E=mc^2$. So in theory you can create any mass $(m)$ from energy $(E)$, and any energy from mass.
And when you look at for instance nuclear plants this is exactly what happens. The used nuclear fuel is lighter when it is taken out after having had its energy extracted from it. Some of its mass has been converted to energy. There is nothing to suggest we cannot do the opposite. So in theory we can create any element from energy, and from any element we can create any molecule, and from these molecules we can make nutrients.
That c squared... $c^2$. That is the speed of light (in vacuum), which is a lot. $299,792,458 m/s$ to be exact. And if you square that, then that is a lot, squared. So you can see that it only takes a very tiny amount of matter to become a whole lot of energy. And this conversely means it takes huge amounts of energy to make matter. To make 1 kg of matter, you need the entire energy output of a decently sized nuclear reactor running for about a year.
Also we have not really learned how to make energy into matter on any large scale. We are quite good at doing the opposite, but not at creating something material out of the figurative thin air.
So the answer to your question:
No, we cannot do it. It is not practically possible to make food out of energy alone.