Is the word "apparition" used in the same way in the following two sentences?

The sudden apparition of the Spaniards. -- William H. Prescott.

Natives were amazed at the apparition of this white stranger.
the same meaning