Yes it does get added to the basis of your property you purchased. You can just add it to a category when you add the closing costs paid at closing.
For your tax records you want to keep this some where how the total cost was arrived at for the property.