Sale of Primary Home - No Tax Due - Are Sale Expenses Still Deductible?

We sold our 20+ year primary residence and bought a higher priced primary residence. It appears that we do not owe taxes on the sale. Can we still deduct the expenses associated with the home sale - or are those deductions only associated with any taxes that may have been due on the sale?

 

Thanks!