Custom URLs w/ Affiliates

Is it possible to create custom urls for users such that their affiliate link would be mydomain.com#userdomain or mydomain.com#username ?