I'm not sure about C#, but yes, Haxe code can be compiled to C++. That's actually how building for Android and iOS works.