As long as the ticket is a wholly unused standard ticket, the ticket can be used by anyone, even if you assigned a name to the ticket. The name is more for your benefit to keep the tickets separate if you have multiple tickets assigned to your account or on your Disneyland app.