Is there a maximum length to a username?

The maximum length for a username is 50 characters.