Yes, the surplus energy can be sold, according to the provisions of Royal Decree 244/2019, of April 5. The requirement for its sale is that it must be under the mode of supply with self-consumption with surpluses not under compensation and the same standards as any electric power production plant will apply.