When I was a teen, I used to listen to music all the time, even when doing homework. I think that it's totally fine and there's nothing bad about listeting to music but we need to make sure that our kids' online time is safe. We need to teach them not to share personal data on social media, protect from sensitive content, limit screen time only if it is harmful. That's my point of view. I maybe wrong.
I have also found a great article about staying safe online. Maybe it could be helpful.
https://custom-writing.org/blog/staying-safe-online