Well, its possible. You could go to jail if your comment is not in compliance with the dreaded IT Act. If you have been watching the news lately, you know what this means. Here is the Information technology act of 2000, amended in 2008, in full, sourced from a government site (Meghalaya police site!). You want to find the things added in 2008, just search for "ITAA 2008" or "ITA 2008" in this document. The act was formulated in 2000, but the amendments made in 2008 have created this situation where its fairly easy to harass any heavy internet and social media user today.
Go to page 24 of this document, section "66 A" is what is being discussed around.
66 A Punishment for sending offensive messages through communication service, etc. ( Introduced vide ITAA 2008)Any person who sends, by means of a computer resource or a communication device,-a) any information that is grossly offensive or has menacing character; orb) any information which he knows to be false, but for the purpose of causing annoyance, inconvenience, danger, obstruction, insult, injury, criminal intimidation, enmity, hatred, or ill will, persistently makes by making use of such computer resource or a communication device,
"Grossly offencive" or "menacing character" - anyone's call on how these terms are to be applied.