(a) A person indicted for committing an offense may be convicted as an accomplice to another person guilty of committing the offense.
(b) A person indicted as an accomplice to an offense committed by another person may be convicted as a principal.