No, Elves are not immune to Hypnotic Pattern, but their Fey Ancestry racial trait offers them gain on preserving throws towards being charmed, that may assist them resist its outcomes. Just about every creature in the area who sees the pattern have to come up with a Wisdom saving toss. https://www.youtube.com/shorts/2bqrDoavYZM