If a "pop" sound plays every time a caption appears, even the most important words you want viewers to see will get buried.
The official way to use copyrighted music on YouTube is through YouTube Studio > Audio library. The audio library includes free music and sound effects, some of which don't even require attribution.