Yes, online statements can be defamatory. The same principles apply to online content as to traditional media.