Your emergency contacts appear on your iPhone's Medical ID, and receive a text if you use the Emergency SOS feature.
You can add new contacts to WhatsApp manually from the Chats tab or you can scan someone's QR code within the app.