If you use proper C++ syntax and respect scopes then yes.