Technically there is UnrealCLR, so if you made a game with mostly Unity-agnostics code it's possible to keep a bunch of it.
One of my game is multiplayer, the whole gameplay code is completely Unity-agnostics to run server-side without any Unity code.