If any person in any way knowingly aid or abet any other person in the commission of any offense described in section fourteen, fourteen-a, fourteen-c or fourteen-d of this article, either as accessory before or an accessory after the fact, such person so aiding and abetting shall be guilty as a principal in the commission of such offense and shall be punished in the same manner and to the same extent as is provided in said sections for the person who committed the offense. The venue of any offense committed in violation of the provisions of this section shall be as provided in section seven, article eleven of this chapter.