You can scan a QR code using the camera on your smartphone, tablet, or computer — however, you may need to download an app.
You can add new contacts to WhatsApp manually from the Chats tab or you can scan someone's QR code within the app.