Yes, of course. On grid solar rooftop system are a part of net metering system. This mean that what you generate, that you use. But if you generate more than your require, that excess energy will be supplied to grid.
For the amount of energy that you will transfer, you will receive money from the grid at a rate of Rs 2.2 per Kw (This was decided in the new Gujarat Power Policy 2021).
This amount that you receive for giving to grid will be valid till the first 5 Years only. After this period, you will get 75% of the tariff decided by the government at that time. I hope I have answered your question.