is it possible to write a liquid code inside this content?
No, you can write HTML but not Liquid.
That would be a good feature, I had requirements where I had to add logic in there.