Creating Server Only Module


I am trying to create a custom module that will contain all of my server only classes (Example: Connecting to Database backend). Then I would add this module into an inherited GameMode class, keeping it all server only.

I was able to create a module and get everything to compile, link and run but I am not 100% sure that this module exists only on the server. I added the module to my Build.cs file under the PublicDependencyModuleNames.

Am I correct in assuming that the and is how you put modules into one build and not another (when building out a dedicated server and a client)?
Ex: Add my custom server module to ExtraModuleNames in my but not add it to