Not only 'can' you, you have to.
Research (or do some CPE... IF you are a tax pro) on *allowed vs allowable*