In many cases, a weak foundation can be repaired using techniques like underpinning, crack injection, or slabjacking. However, if the damage is extensive, a full replacement might be necessary.