Yeah but in fiction it's a bit more complicated. Character names are often chosen for their meaning or sound, so the translator has to decide whether to lose the meaning or maybe describe it in footnotes, or to create a corresponding name in target language. The latter happens more often in children's literature, or fantasy (Harry Potter, LOTR, Disney ...).