Yes, you can do that.
Many people do the same to either sell the new subsidized phone or give to a family member etc...
All you gotta do it put your sim back inside the old phone and call them to cancell the iphone data since you're not using an iphone any more.
They will ask you for the current phones imei and that's it.