Codes can be synonymous with codebases and is grammatically just fine, though probably not the most common usage.