Use of temp variable to print linked list

if temp->data prints the value in the node, can head->data print too?

If yes, why do we create a temporary variable?