I think it should, if Mahle follows the same color scheme as Bafang, I believe I've used six different makes of hub motors over the years, although the majority were Bafang and Aikema. Matched colors on phase/sensor and they always spun up,
I know there are a few oddball makers that don't know what they are doing, but I've never encountered them.
I have encountered a 9 pin extension cable where the arrow was off by 45 degrees. That cable was problematic. Gave poor contact,