How do you put 2FA codes on 1password?
Create a new login entry, then create a new field under the Section header. By default, it's a text field, but you can change it to a 2FA code. Then it will prompt you to scan a QR code.
Also the answer to your question is the first result when googling "1password 2fa".
If there's any risk of an attacker breaching your 1Password vault, I don't know if it's even worth talking about whether you have 2FA enabled for accounts -- at that point it's very likely they also have access to whatever you'd have used for 2FA also.
(One exception might be if a AgileBits insider were to install malicious code into the 1Password client. In that case, those who use 2FA outside 1Password would be significantly less vulnerable.)