You can reset your WhatsApp QR code at any time to make the previous code invalid and create a new WhatsApp QR code. If you delete your WhatsApp account, your WhatsApp QR code will also be deleted.
About WhatsApp QR codes
How to view your WhatsApp QR code
How to scan a WhatsApp QR code
How to share your WhatsApp QR code