I’m not sure exactly what you’re asking but in my experience orders are tied to email addresses. So if a person created 3 different guest checkouts using the same email, then they create an account later using the exact same email address, the previous 3 orders will show when they’re logged in.
The reverse is also true. If they have an account but checkout as a guest, as long as the email is the same it will show in their account.