I wasn't sure because I know sometimes you can't simply place an OS onto a device. For example, most XP computers couldn't simply get Windows 7... At least, from what I remember hearing.
How do you upgrade the iPhone? There's just a menu in Settings or something that says "Update iOS?"