There is some evidence that listening to music while driving can contribute to accidents. A study that exposed experienced drivers to a variety of music showed that people who were listening to fast music were more likely to get into accidents. This study was performed on a driving simulator, however, and the study's lead researcher noted that there might be differences between the behaviors of drivers on the road and those in simulators. Other studies have shown that singing along to music can slow a driver's reaction times.
More about driving distractions: