This is commonly the case for online shopping, where account creation is optional and may only occur after confirmation, but the order will be placed regardless.
So in the email you can include a link to optional account (username/password) creation.
And if you aren't sending an email, then the user has clearly decided not to create an account.