Yes it would be a capital loss but is not a tax deduction really. You can use it to offset future capital gains.