Based on my research, I have found that this is true to an extent. There are both pros and cons to listening to music while studying, and it really depends on the task at hand. On one hand, music provides lots of benefits, including improved mood, increased motivation, better concentration, and improved memory and brain stimulation, all of which are important for studying. There have been several studies done proving these benefits.
"In a 2013 studyTrusted Source, 60 female volunteers carried out a psychological stress test while listening to relaxing music, sounds of rippling water, or no particular sound. Results suggested that listening to relaxing music makes a physical difference to the way people respond psychologically and physically — in terms of hormone response — under stress. However, the picture is complex, and more studies are needed."
Because studying can be a very stressful activity, playing some music can help people feel more relaxed and work more effectively. Additionally, another found that classical music can help your brain absorb and interpret new information easily. "The researchers found evidence to suggest that music can engage your brain in such a way that it trains it to pay better attention to events and make predictions about what might happen."
https://www.healthline.com/health/does-music-help-you-study#negative-effects
According to research done by Standford University, music engages the areas of the brain responsible for paying attention. In their research, they used an fMRI in order to show which parts of the brain are working during a given activity. Using this machine, they found out that musical techniques used by composers 200 years ago help the brain organize incoming information.
https://med.stanford.edu/news/all-news/2007/07/music-moves-brain-to-pay-attention-stanford-study-finds.html
On the other hand, listening to music doesn't help everyone and can be a distraction when doing certain tasks. For example, if a student is trying to write a paper or trying to remember certain events, listening to loud music or music with lyrics can make these assignments difficult and do more harm than good.
https://www.healthline.com/health/does-music-help-you-study#negative-effects
Overall, music has both positive and negative effects when it comes to using it while studying. It is important that people decide when to use it so that it is helpful for their studying, and when to press pause when it becomes a distraction.