Under the law, an accomplice can be a competent witness, and their testimony can be used in court if it is corroborated by other evidence.