Can I deduct real estate commission fees on a rental property I sold in 2016?

I sold my rental property in October 2016