Will this code work? (simple)

The pin names as strings do not have any meaning after compilation.

Try

#define Cookie      3

#define BigCookie 4

byte Z[] = {Cookie, BigCookie};