This is true of Swedish names too. Before 1900, last names were taken from the father’s first name, with ‘son’ or ‘dotter’ attached. Or, the mother’s name. On family records I’ve seen two or three last name choices for children. Then of course when they arrived at Ellis Island for example, the name might be Americanized.