This has been a thing for longer than I can remember. Many many years, it should only depend on what your QR scanner are capable of (and that will vary since most use their default camera app for scanning QR codes and most manufacturers ship their own - but by now I hope even older phones have it).
Android 10 made som more specific features for this, such as automatically generating the QR code for others and scanning QR directly from the wifi settings.