Exactly. Of course here the license used was MIT, but like all licenses the reason it was a license is that the rights holder was a rights holder. If the code was in the public domain then license choice would be moot.
The bigger point is [IANAL] that "open source" only has legal relevance in regard to concepts like trade secrets (a common connotation of "closed source") where revealing the source code might be subject to tort. Any rights that others have derive directly from copyright law and the way in which the rights holder decides to assert their rights.
Putting something in a public Github repository makes it open source, but "open source" is mostly a common language phrase not a term of legal art.