If you intention was to make a profit, and you are renting the space at fair market rates, then yes, you can claim your expenses. However, you can only claim expenses for the time your property was rented out, or you were actively searching for someone to rent it.