Does a dedicated server require a source build?

Does compiling a dedicated server for my game require UE4 to be built from source?
The reason I’m asking is because I’ve found this guide, which tells me to download the source and compile it. However, the main reason I can think of to actually download the source, is so that you have a pre-setup VS environment which includes compiler flags like WITH_SERVER and WITH_SERVER_CODE.

Isn’t it possible to generate a custom compiler configuration for a c++ project that includes these flags so I can include or exclude code from compilation based on which is the selected target?

When I’ve built a dedicated server its always been from source… Always thought that was required…Still think it is. Hopefully, someone can give a for sure.

Did you get any answer?