QR codes don’t add friends, they just add the mii. They can only be used for your miifotos.
And there’s been a recent update with new ways to add friends(text, email, or through the LINE application). So unless a child is going to share their email,LINE, or phone number with a stranger, I really doubt there would be…