Scanning QR codes or Bar Codes to input data into form

Scanning QR codes or Bar Codes to input data into form

Can you load a form, then scan a QR code so it then inputs the data into a field? Please help, if this is possible it would be of massive benefit to our company.