What fees from closing can I deduct for calculating cost basis of primary home

Are the title fees and H.O.A. document retrieval fees deductible for cost basis?