Yes, but only after you have sold it because improvements add to the basis of your home. Your gain is defined as your home’s selling price, minus deductible closing costs, minus your basis. The basis is the original purchase price of the home, plus improvements, less any depreciation.
The IRS defines improvements as those items that “add to the value of your home, prolong its useful life, or adapt it to new uses”—such as putting in new plumbing or wiring or adding another bathroom.