Hi, Sujoy Basak
Yes It is possible to use non persistable entity inside a Workflows see below Image.
I hope It will be help you,
Thank you!