Substituting ingredients may alter the texture and flavor of the cookies. It's best to follow the recipe as closely as possible for optimal results. However, if you have specific dietary restrictions or preferences, you can explore suitable substitutions.