Technically it is possible to extract the WiFi password from the QR code you are sharing. QR code reader apps can display the password after scanning it. So, don't include personal information in your WiFi password.