In practice, yes -- this is how they do it.
In theory -- legally, there is no requirement that they refund the tax to the passenger. The only legal requirement is that the tax, if not refunded, is still paid to the government.
More semi-related discussion in this thread:
Cancelling Points reservation no $5.60 back?