You can upgrade at anytime.
T-Mobile doesn't generally have special deals for customers to upgrade their phones. (e.g. iPhone for $200 with a two year contract.) You can upgrade or change phones whenever you like but you will be either paying for the phone or signing onto a phone payment plan.
Manage your T-Mobile account