Deductions & credits

So,  the cost of restoration over what the insurance paid, if any, can be added to the cost basis for the sale in 2018, thereby reducing the taxable gain.   Is this correct?