Yes, if you create a template function to do so.
See:
https://manual.calibre-ebook.com/template_lang.html
Create a custom composite column to test templates. Once you have the column, you can change its template simply by double-clicking on the column.