Alright, let’s break this down.
Growth takes energy. Growing a fruit requires energy. This can be taken from the soil, sun, or from other energy sources like food.
Ingest fruit. Acquire energy. Energy lost in conversion through digestion.
In the end you have used more energy than you have gained. Nothing was achieved. In fact, energy was lost in the process. You have used energy to create less energy than you consumed.
You can acquire that lost energy very simply, but why not do that in the first place and skip the entire ‘make energy to get less energy’ thing? It’s more efficient that way.
So basically no, growing your own fruit to eat is a bad idea and has no practical application as far as eating it yourself. It’d need some use beyond that.
Maybe for OTHERS to eat; NPC’s would probably appreciate it, seeing as you can gather nutrients in ways they can’t. To them it’d look like free gain.