Yes, the expenses would be deductible. See IRS Publication 527 Residential Rental Property, page 10 here.
Idle Property
Continue to claim a deduction for depreciation on property used in your rental activity even if it is temporarily idle (not in use). For example, if you must make repairs after a tenant moves out, you still depreciate the rental property during the time it is not available for rent.