You can add WhatsApp to the allowed list app and also the contact preferably so that if that person contacts you via Whatsapp, they will go through regardless of your DND mode.