You do not NEED internet access to do programming.
However, all the tools you will need are typically downloaded, and all of the help files and references you will want to read are typically on the internet.
If you can download the tools somewhere else, such as at the library, and transfer them with a USB key, then you can program on a non-internet-connected computer. If you need to look something up, use the phone.