Technically, the contract is just for the service. So, as long as you keep the carrier you can do whatever you want with the phone. In most cases, I would suspect that they can cancel the data portion without a problem, if not, you would want to get another phone with Internet access (easily) so that the money isn't going down the drain.
TEG