Yes. The DRV8837 has a pin for the direction. It's a H-Bridge.