Yes, modern locomotives all have some form of dead man's switch. These days the traditional sort that must be held down at all times are more rare though. Most will be a button or foot switch that must be pressed to acknowledge a warning after a period of time.