This is a horrible analogy. When you produce music it doesn't have to hook into an external API. Can badly produced music crash a device (aside from the user's ears)? No.
No, it is a great analogy. Think of it this way, the record labels do what Apple does with it's review process -- ensure that 'quality' music is produced and distributed to listeners. But record labels do not limit what instruments can be used to produce that music.
If Apple allows C, and they do, the choice of tool doesn't affect whether or not the device will crash.