Yes, it can be recovered..........but not always.

If it is an Android phone, and with a major provider, there is a good chance that components are backed up onto the cloud.

If not with a major provider, there still is a chance it is backed up on Google Cloud......

It just depends on how they set up the phone.