After looking through the file, it looks like this just injects categories into the wikitext which shouldn't matter if CategorySelect is disabled, although it also doesn't hurt to leave it wrapped in a flag.