T-Mobile has instructions
here on how to set an APN.
From doing a bit of reading, though, it appears that lots of carriers send their settings to be included in iOS by default, which is probably why they were already there when I set it up on that iPhone. Knowing that, I think you'll be fine.