if the upgrade is cleared before the coupon expiry, the coupon can be used OK.
The coupon wont be refunded if you cancel/change the upgrade after the coupon's expiry date.
So, you should upgrade flights you are sure you wont change for whatever reason.