Yes, but you have to spell "Serial" correctly, have the correct number of braces, declare "button" before it will compile.
"button" will be an input by default, but a pinMode wouldn't go amiss.
Code tags would be good too. I do believe you've been asked before to do that.