No it's not necessary. I think vanilla extract paired with a little bit of almond extract makes a better tasting cookie, but it can be replaced with any extract you prefer. It can also be left out and won't greatly impact the cookie texture or flavor.