If you add a home battery to your solar power system, you can avoid disruptions caused by grid outages. The amount of energy available for you to use in case of an outage will depend on several factors:
The size and production of your solar panels
The size of the battery system
The battery state of charge when the outage occurs
The areas or appliances in your home that are prioritized to receive power when the grid goes down.
If, however, your solar energy system does not include a home battery, then yes, your power will go out. In the event of an outage, all standalone solar energy systems will automatically shut down in accordance with electric codes and mandatory inverter specifications.