Two-factor authentication (2FA) is effective at keeping your accounts safe so long as you aren’t being careless on the internet.