Both are grammatically correct, but the first is usually wrong. The first suggests that we will eat cookies at dinner (more accurately "dinnertime"). Since most people consider cookies as not a main meal, the first sentence does not make sense.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.