Does word "identity" have the same meaning in the following two sentences?

Geneticists only recently discovered the identity of the gene that causes it.

It was too dark to determine his identity.
the same meaning