You can do this however 3G will not work, while T-Mobile and AT&T use the same EDGE frequencies, they use different frequencies for UMTS.
open