Yes, you can use virtual attributes in microflow expressions.
Be aware that each time you look at a virtual attribute its microflow will be executed. If you are using the value of the attribute many times (for the same object) it is more efficient to create a variable that stores the result. However, this is only valid if the value of the attribute doesn't change during the actions you are performing.