Anyone who scans it can read the password
A Wi-Fi code contains the network name and password in a standard, readable form. Treat a printed code like the password itself: put it where your guests are, not where passers-by can photograph it.
For visitors, a separate guest network is the safer choice if your router offers one.