Most ovens do not have an automatic cut-off when the electricity goes off. When a power outage occurs, the oven will typically lose power and stop functioning until the electricity is restored. Once the power comes back, the oven will need to be manually turned on again.
It's worth noting that some newer models of ovens may have a feature called "power interruption recovery" or similar, which allows the oven to resume its previous settings and continue cooking once power is restored. However, this feature is not available in all ovens, so it's essential to consult the specific oven's user manual or contact the manufacturer to determine if your oven has this capability.
In the case of a power outage, it is recommended to keep the oven door closed to help retain heat inside and preserve any food being cooked for as long as possible. Additionally, taking safety precautions, such as using alternative cooking methods like a gas stove or grill (if available), is advisable during power outages.