Are closing costs deductible when selling a home?

I sold my home in 2016.. Are the closing costs deductible?