If the home has just developed a bad foundation due to age or movements within the earth then no the Homeowners insurance won't pay for the foundation to be repaired.
That would fall under regular maintenance that the Homeowner should be doing to protect the home and you will have to pay for the repair of the foundation yourself.
If the foundation was damaged due to a natural disaster such as an earthquake then the Homeowners insurance will likely pay for the foundation repairs.