Yes, when message history is hacked, the software restores the history from backups stored on WhatsApp's servers. This way, users have access to the full message history for the entire time the account has existed.