Lightning is perfectly safe...unless it's coincident with thunder.
Why?
Light travels much faster than sound. That's why you usually see the flash of light just before you hear the thunder.
The further away, the longer the delay. If there's no delay between the two....you're toast.