No, Elves are not immune to Hypnotic Pattern, but their Fey Ancestry racial trait gives them benefit on saving throws towards currently being charmed, which can assist them resist its results. Every creature in the area who sees the sample must produce a Knowledge preserving throw. On a failed help https://www.youtube.com/shorts/2bqrDoavYZM