Yes, if you have provided your Xfinity ID credentials to anyone else they may be attempting to do the following:
Either way, do not provide the code to anyone you do not know/trust - this applies to any service where you've enabled Two-Step Verification or Multi-Factor Authentication
We take your account security very seriously. If you need to report any identity theft or account compromise issue, please visit https://internetsecurity.xfinity.com/help/report-abuse/
Periodically Xfinity sends me a code when I have not accessed my account to change anything. Does this mean that someone is trying to login to my account?