For class-based learning materials you don't need to be part of a class to purchase the learning materials, but as a learner, your teacher will not be able to see your progress until they set up a class.
For independent learning materials, you do not need to be part of a class to purchase or use the learning materials.