Deductions & credits

So I can add those fees to the purchase price of the house, which will reduce the amount of taxable profit on the sale?