Yes, is it possible. I would suggest createing a Boolean type attribute with two enrichments:
This will give you the data that you need. You can then reference this Boolean in another attribute like a Badge, for example a Cart Abandoner Badge. The logic being, assign Badge at end of visit of Cart page is visited but Order Confirmation page is not.
Does that help?