Does "union" mean the same thing in these two sentences?

Lightning produced an unusual union of the metals.

Let C be the union of the sets A and B.
different meanings