Yes, by adding net metering to your solar panel system, you can sell the extra electricity produced back to the grid and use them during the night or when the solar panels are not producing enough electricity.