Hi Rezve,
It would be a violation of the Upwork User Agreement to create an account for someone else, or to access their account. Section 3.2 Account Registration; Profile states that -
"You agree not to register for more than one Client Account and one Freelancer Account without express written permission from us (except that you may register as an Agency Member of other Accounts as provided below). You agree not to ask or allow another person to create an Account on your behalf, for your use, or for your benefit."
Please read up on this help article to know how you can refrain from having your account suspended from the platform.
~ Avery