yes, you got it.
but viva, you HAVE TO put any your code in a function (main or any other), don't place commands (except declarations) outside functions! It's possible with old syntax, but this is 'unwelcome' style
next step, after you learn more about snd_... and media_... is to write a sound manager function for your project (function or group of functions to control sound in your game. this manager can check some vars and skills and plays needed sound with fading, etc. That vars (skills) you assign in other place in your code). this is the common technique - splitting project for a manageable blocks.