Enrollment in Courses of network setup

Normally, when a course on the main site, with a multisite setup, is displayed, then clicked on, it takes the user to the subdomain that created the course… Is there a way that the subdomains can create the courses as they do now, but if a user opens and or enrolls in a course, it handles everything on the primary domain only?