Section 133 of the Indian Evidence Act, 1872 states that "An accomplice shall be a competent witness against an accused person; and a conviction is not illegal merely because it proceeds upon the uncorroborated testimony of an accomplice." Therefore, an accomplice can be a witness.