Solar energy being generated at the basic individual unit is being popularised. As of now, Indian homes have two options.
Option one: A grid-connected circuit is cheaper, when there is excess energy it is given to the gird and when there is a shortage, it is taken from the gird.
Option two: The off-grid system that is expensive (due to the storage batteries) and though there is no money earned, it would be indirectly earned by the savings on the electricity bills.
So, which we choose would be based on our budget and the nature of power supply in the local region and the regulations of the particular state electricity board.
As far as I understand, you can use the solar energy directly but if you want to use it during night times when the power goes off, you cannot unless you have the batteries. So, in short, you cannot unless you have a HYBRID or MULTI-MODE type of solar energy system, This gives you the best of both conventional on gird and off grid systems. Hope this answers your query.
Image source http://urjaglobal.in