Yes, while saving a course, the system will automatically assign the learner group and admin group based on the chosen portal. However, if you want to modify the access, you should click the Access Icon on either the Course Listing Page or the Edit Course Page and provide access to particular groups.