Can I use source code of a library and have it cross compile to all platforms?

Can I use source code of a library I want to use and have it cross compile to all platforms using the Unreal build tool? Or do I need to cross compile it myself for each individual platform (iOS, Android, Windows x32 and x64 and Linux x32 and 64) then include these compiled libraries in a plugin?