Most common sourced hubs (Mxus, Bafang, Akiema, Yose, Xiongda ) etc ,etc.use the standard 8/9 pin motor cable connector if yours is of this type then yes. You can always show us a pic to confirm.
8 pin motor cable means you have to fit an external wheel speed sensor, 9 pins means the hub has...