That depends on if you have solar battery backup! Without a solar battery, your grid-tied solar energy system is subject to the same disruptions in electricity that your neighbors are, which means that if there’s a storm and a tree falls on the power lines, you won’t have electricity for your home.
But, with solar battery backup installation, your system will seamlessly switch over and start using energy from your battery to power your home, so as long as your battery remains charged, you can keep the lights on.