I will go so far as to say that music can make me enjoy a game more, and if I'm enjoying it, chances are I'm paying it better attention, and consequently doing better.
However, if this is true, than music which I hate in a game can actually make me worse at it.