I think the idea is to share, but no, you don't need to share everything. These Jams are just for fun anyway :)
If you want to be helpful, you could include comments in the code highlighting areas which won't work due to music/sprites being withheld, so if anyone decides to work on the game they know what they need to replace.