Depends on the intention and story setting, characters may not need last names, or even a name at all.
Besides, not all cultures have first name surname formula, or even a name that contains two or more words. Even those which now have, might only reserve those last names to certain group/class of people in the past.
My current work however, have familial ties as a significant plot point, so I have to give some of them last names.