Hello @nmltsv and welcome to the Canvas Community! Thanks for reaching out and your question. I'm not very familiar with joining a course by code, however, found some information that is relevant to your inquiry. Are you a student: How do I sign up for a Canvas account as a student? or an instructor:How do I enable course self-enrollment with a join code or secret URL?
Also, I've listed below similar previous discussions listed below: