If you have an off grid solar system (have your own battery), then yes, your solar panels will power your house during a power outage. However, if your solar system is connected to the grid, the grid will shut down your solar system to protect grid operators and technicians from injury or death.