Motor braking

Is possible to brake a motor with BrickPi, i.e. for the driver to ground both motor lines simultaneously with the driver enabled?