Yes, you can shift from D to S while driving. However, it’s important to do it carefully and you don’t want to have the gas pedal to the floor while you’re doing it. Let off the gas and engage the sport mode gear and wait for it to shift.