Can you change your project from a Listen Server setup to a Dedicated Server setup without changing the entire project?

More specifically, the implementation of the AGameMode derived class changes from one type of server to the other? What changes one would go about making to the client code?