With the general level of discourse on the internet, it's hard to be sarcastic and not be taken as a troll. There are subtle intonation cues when speaking face-to-face that can't really be translated well to text. So I would say that the sarcasm is ruined if it is too clearly marked, but it helps if it is marked in some way.