I ask this question because of the public figures I have seen playing electronic music in the background, among them the runner-up Ian Nepomniachtchi. I cannot rely on my experiences, as they may be conditioned.
Surprisingly, the answer is yes. Listening to music can increase blood flow to the brain. Musicians are also known to have more gray matter in the frontal cortex which can form more complex neural networks.
To put it simply, music activates your memory, and memory is the number 1 tool when playing chess.
Obviously most people prefer silence when playing but that’s not to say that it couldn’t work.
Here is a scientific article on the matter: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2776393/