You can log in to Google Classroom through a personal account or an account associated with either a G Suite for Education subscription.
The text above is a summary, you can read full article here.