cheating is never okay. the only time I would condone it is if the other person cheated first and you're doing it as revenge- but even then it's iffy.
Yeah, you can take the revenge but not using the a third person. You should take on him/her who cheated with you.