Does the word "hit" have the same definition in the next two sentences?

The car hit a tree.

The ball hit the fence.
the same meaning