Hi no since your iphone 4 is locked with t-mobile network you can't use it in Portugal until you unlock it ...You can easily unlock your iphone from t-mobile network lock with the help of providers like Superunlockcodes.com here they will unlock your iphone 4 using remote unlocking service for affordable cost ...After unlocking it you can freely use it in Portugal with any GSM sim ....