Yes. During your account upgrade, the previous unused credit is adjusted automatically according to the remaining period of your previous plan.
However, while upgrading, you cannot switch from yearly billing to monthly billing.