No, the terms of use are a legal contract.
3.1. What can I do with the Riot Services? (You can enjoy the Riot Services for your own, personal, non-commercial use.)
We grant you a limited, non-exclusive, non-transferable, revocable license to use and enjoy the Riot Services for your individual, non-commercial, entertainment purposes only and expressly conditioned upon your compliance with the terms of this Agreement. Unless otherwise expressly authorized by us in a signed writing, you may not sell, copy, exchange, loan, reverse engineer, decompile, derive source code from, translate, lease, grant a security interest in, transfer, publish, assign or otherwise distribute any of the Riot Services or any of Riot Games’ intellectual property, including any computer code associated therewith.
Also, as stated in the terms, and above by Imperial Pandaa:
1.4. Can I share or sell my account or login credentials? (No.)
When you create an account with us, we require you to select a unique username and password (collectively, your “Login Credentials”), which you’ll use each time you access the Game. You can’t share your account or Login Credentials with anyone. You can’t sell, transfer or allow any other person to access your account or Login Credentials, or offer to do so. You’re entirely responsible for maintaining the confidentiality of your Login Credentials. Please notify us immediately if you become aware of any breach of security, including any loss, theft or unauthorized disclosure of your Login Credentials.
Then
2.1.2. Us.We may terminate or suspend your account if we determine, in our sole discretion, that:
(a) you have violated any part of this Agreement;
(b) we have stopped offering the Riot Services in your region; or
(c) doing so would be in the best interests of our community, the Riot Services, or the rights of a third party.
We may make such determinations, among other ways, by using automated systems and machine learning tools.
By 3.1, you may use Riot games services (including playing LoL) as long as you comply with the terms. Part of the terms is absolutely no account sharing or selling (1.4). Since you did not adhere to the terms of use, they are within their right to enact 2.1.2 (supported by the "revocable license" clause of 3.1), by terminating your account.
Edit: And more:
2.2. What happens if my account is terminated? (No LoL for you.)
If your account is terminated, you’ll no longer have access to it, including any of the associated data or content (e.g., champions, skins, Riot Points, etc.). You’ll not be entitled to any refunds and we’ll have no liability to you. We also reserve the right to terminate any other accounts you may have created (also without any refunds or liability to you).
You understand and agree that using the Riot Services comes with the risk that your account may be terminated or suspended and that, whenever you use the Riot Services, you’ll bear this risk in mind and always conduct yourself appropriately.