Yes, the code will work fine if you use different functions and music file names in different areas. Let me know if you encounter problems with it.