Courses are hidden from student-view by default. This means that only you, as the instructor, can see the course. The enrolled students will not have access until you make the course visible. To check your Course Visibility settings:
If your course is visible and a student still can't access your course, it could be because they are not enrolled. To check that the student is enrolled in Moodle: