Does OMGF (Pro) edit template files?

No, it doesn’t.

OMGF (Pro) works on-the-fly. This means that any changes it makes are made dynamically, not statically. When the plugin is deactivated, all optimizations/changes disappear along with it.