Everything is possible
However... Looking at the normal flow
Customers either create an account without something in their cart (easy enough to detect)
or
create an account with something in...