This depends on whether you've chosen to keep messages for 30 days, 60 days, or forever. If you've backed up your iPhone or iPad, copies of messages will be stored there, as well as on your device.