Is revenge sex fair after being with a cheating partner?

I'm just curious if having sex with someone else after your partner has cheated on you a way to make them feel the same stupid heartbreak and pain? 
I get it ! Leave him/her that's the only way ...... 
But really who has really got revenge this way ?