Is hiding source code in plugin possible?

DLL or static libraries - there is no problem.
There are a few marketplace plugins that use this approach.