Yes, the first law of thermodynamics states that energy can neither be created nor destroyed; it can be converted from one form to another. In an ecosystem the plants capture 2-10% of PAR (Photo synthetically active radiation) from the sun.
The solar energy captured by plants flows through different organisms of an ecosystem in the form of food energy. This unidirectional flow of solar energy in accordance with 10% law.