Yes, you can usually port your number even if you're under contract. However, you might need to pay any outstanding fees as per your contract.