L293D has internal diodes. So its not a necessary requirement. But saying so its always good to use 1N4001-1N4007 to stop the backflow.