I guess confessing to a crime you did not commit constitutes lying...
Insofar as it helps the guilty party get away, it might make one an accessory after the fact, and thus actually guilty of the crime to which one has otherwise falsely confessed.