Yes, if you sell your car and cancel the tax, you will get your road tax back. Any remaining full months' worth of taxes will instantly be refunded when you cancel the tax. Your current road tax cannot be transferred to the car's new owner.