In the case of WhatsApp, your data is only on your device and, optionally, in iCloud.  So even if an attacker is able to take over your WhatsApp account, your existing data is still private unless the attacker can obtain your device password (and your device) or your iCloud password.