Yes, if you have an existing account through your family you will be able to join that account to your school.
This way you will be able to earn coins and progress on the one account. You will also only need to have one username and password. Here is how you can request to join your school account. Do also let your teacher know, so that they can approve and add you to the class.