Yes, you can use iCloud backup or other cloud backup services to transfer texts to a new iPhone.