How to Extend and Build Custom Resolvers with Strapi v4

Yes, you can place the code in different files and organize it in a way that makes sense for your use case and them import into the file with the register function.

So you can have your types and resolvers live in different files.