In general, yes. You just have to convert the MQL code to lite-C. Usually the lite-C implementation will be much more simple than the MQL version.