Can I use PWM to control the motor speed driven by a L293D?

Has the L293d the potential to do the job of balancing a 2-wheeled robot? PID control is necessary for a balancing robot that ends up setting a PWM value to control motor rotation at it's appropriate speed. Can I implement it with this kind of motor driver? If so, where should the PWM values be landed on the L293D pins (enable?, inputs?. . .)

Take a look on this comment…

Helped me so much. https://www.robotshop.com/letsmakerobots/node/24323#comment-59905