When the oil light comes on, it indicates low oil pressure or oil level. Insufficient oil can cause internal components to grind and seize up (i.e., stop moving), leading to engine failure. The car turning off while driving further supports this possibility.
It's recommended to have the vehicle towed to a qualified mechanic for a thorough inspection and repair diagnosis.