It's the opposite. Without a license, the default copyright laws apply, meaning that the author retains all rights to their source code and no one may reproduce, distribute, or create derivative works from their work.
Source: https://docs.github.com/en/repositories/managing-your-reposi...