Yes, of course, you can export the excess amount of generated electricity to the government (in the grid) through net metering. And the government will adjust it in your upcoming electricity bills.