Do humans put the cables in the right place?

Yes. While machinery is used to move all the machines and pieces around the assembly plant, people actually assemble computers. Robotics aren't quite replacing people yet for these types of positions. Same as how there are still quite a few people working the assembly lines of car manufacturers.