Yes. If you own the code in a repository, you can license it, and GitHub is the easiest place for it to be. You connect your account with read-only access, pick the repos you want to include, and a real per-repo estimate appears within minutes. GitLab and Bitbucket work the same way.
Nothing about the repository changes. It stays in your account, under your name, with your history. A scrubbed review copy is made for grading, and that copy is what buyers see. You keep pushing to the repo, using it and shipping it as before.
Only private repos qualify. Public code is already easy for anyone to find, so the labs decline any repo that is public today or ever was, including one an old Internet Archive capture shows, and any code published as an npm or PyPI package. Forks of someone else’s project and renamed open source are declined too. Connect the repo itself so its full history, pull requests, reviews and issues come with it. A flattened copy loses most of its value.
What happens to my GitHub repo when it is licensed?
Nothing you would notice. Read-only access lets the program copy the repos you select with their history. It cannot push, delete, change settings or see repos you did not pick. You can revoke the access from your GitHub settings whenever you like. The copy is scrubbed of secrets and personal data, graded and taken to buyers in batches. Your repo keeps its name, visibility, stars and issues, and nobody outside sees it.
GitHub organizations work the same way as personal accounts. If the repos belong to a company organization, someone with authority signs for the company and an owner grants the read-only access. You can include some repos from an organization and leave others out.