Can i update an iPhone 4 to ios5?

I want to purchase an iphone 4 as my computer won't let me update my ipod 4 to i0s5, and I can't afford an iphone 5.

is there a way you can update the iphone 4 on the iphone, without plugging it into the computer?
Best answer gets ten points!

Yes, you can update iphone 4 to ios6 without a computer.go to general then software update.