Yes, but I cannot do that with Apple's iOS (well, I can, but I have to buy certificate for 99 dollars)
But, yeah, in theory, you can download it and compile it. The fact that you would have to also buy a certificate from Apple to do it is just a detail. You _can_ do it.