Yes Thunder if close enough and loud enough can damage your hearing right away so if you expect thunder to be near do cover your hears to prevent any hearing damage.
Other extremely loud sounds of about 120 to 150 decibels including thunder and gunshots can damage hearing straight away so cover your ears when around noises of 120 to 150 decibels to be safe.