Of course not. For the first name, it has absolutely nothing to do with anything other than that was the name chosen by the person(s) who gave the name to the child.
For the last name, surnames came more from what a person did or where they lived, and surnames morphed over time into forms completely different than what they started out as.
Can two people who share the same last name but have no direct family ties be blood-related, going back, perhaps, centuries? Yes. Are all people who share a last name blood-related? Definitely not.