Is it okay to directly connect together the grounds of the logic supply and the motor supply when using a Pololu style stepper driver?

[![A4988 connection schematic][1]][1]

If yes/no, why so?


  [1]: https://i.sstatic.net/yijCn.jpg "A4988 connection schematic"