A person who counsels or procures another person to commit an offence, or who aids another person in committing an offence, or who does or omits to do any act for the purpose of enabling or aiding another person to commit the offence, or who becomes an accessory after the fact to an offence, may be charged in the same indictment with the principal offender, and may be tried with the principal offender or separately, or may be indicted and tried separately, whether the principal offender has or has not been convicted, or is or is not amenable to justice.