can I use a momentary button on a analog pin?

the Examples > Digital I/O

is what I was going by.