The sentence is correct. You could also say: When/On/After hearing my joke, my uncle let out a peal of laughter. There are subtle differences in meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.