Can the spell Catnap affect elves?

Elves cannot be magically put to sleep, according to their Fey Ancestry trait.

The catnap spell (Xanathar’s Guide to Everything, p. 151) can make up to three willing creatures fall unconscious (and get the benefit of a short rest after the 10-minute duration).

Can elves be affected by the catnap spell?