Yes, you can still deduct utilities even if the property is vacant.
You can claim a tax deduction for the portion of utilities related to your rental property or suite. Claim the full amount if you rent out the full property, or claim a portion if you rent out a suite in your principal residence. Deduct the following utilities related to your property, if you pay for them: heat, hydro, water, and cable.
For more information please refer to the following TurboTax article:
Thank you for choosing TurboTax