Shadow ninja'd me:
For smaller habs, maybe. For this hab, you would need 25,040 hanger decks, 2,556 crew quarters, 2,550,260 BP, 1,878,000 vendarite, 645,113 duranium, 25,560 mercassium and a bit of neutronium and corbomite in 10,584 sections.
But, even for a hab with a single module you'd still need 25,869 BP and 18,825 vendarite. It makes more sense to me to just scrap damaged habs and build new ones.