absolute noob asking how QR codes work to 2fauthenticate.

So I do scan the QR code and then I get a list of codes I can use to log in? or do I have to scan the QR code each time I want to 2fauthenticate?