Not quite. They have to show that the crime was committed for the benefit of a criminal organization. They don't have to show that there was a link in that particular case as long as they can show that the group constitutes a criminal organization and that the crime was committed for the benefit of that criminal organization.
The link is not necessarily through the particular offence in front of the court. It could be shown, through other evidence, that the group engages in drug trafficking, for example. If it can be shown that they engage in drug trafficking, extortion, prostitution, or whatever offences they may specialize in, or the range of offences they may be involved in, you would be able to prove that the criminal organization exists. And if you can show that the offence was committed for the benefit of the criminal organization...and that does have to be shown. You don't necessarily have to trace that particular offence back to show what benefit that offence may have garnered for that criminal organization; you simply have to show that it was done at the instance of the criminal organization or in association with them.
So once the issue of the existence of the criminal organization is shown, and you can then show that the people committing the drive-by shooting were doing so in association with them, that would be sufficient for the charge.