Thanks for posting the schematic. Assuming that the triangle in the button circuit is an LED, that is not a good idea, as the Arduino is not guaranteed to read a HIGH when the button is pressed.
Instead, connect the button directly between GND and the digital pin, and use pinMode(button, INPUT_PULLUP); so that the pin reads HIGH when the button is open, LOW when it is closed.