Yes... But I think this only tells half of the story.
What if you pass a reference and mutate the object inside the function?