It works in both cases. If they already have an account, they will be asked to sign in with it after entering the code. At the sign in screen, new students can simply click on the 'Create one now' link and they'll be right inside the app afterwards.
That's all there is to it! I'm confident your next lesson will be just as easy.
The EF Class Team