This will likely depend on the severity of the foundation damage. If your foundation is sinking into the ground and repairs involve lifting the home up onto a pier and beam foundation, you likely won’t be able to stay in the house. If repairs entail smaller fixes, like filling in cracks, you can likely stay put.
Keep in mind that if your foundation is damaged due to a covered event and you’re forced to stay somewhere else while the house is being repaired, homeowners insurance can help cover the cost of your [additional living expenses](https://www.policygenius.com/homeowners-insurance/what-is-loss-of-use-coverage/).