Yes, you can use iCloud to store media of third-party apps like WhatsApp, Facebook, Instagram if they allow you to make a backup of it.