Yes. The tcp/ip stack may not contain quite all the features of the java.net package in the full JRE version of Java, but there's enough to suit most mobile-to-server needs. The use of GPRS is transparent. The same code works over other channels as well (such as WiFi), if the device supports other channels.
An IDE is no substitute for an Intelligent Developer.