My First Arduino Project

Yes, button between ground and pin2. Then do the pinMode like I listed and change your code logic to reflect that a low means pressed and a high means not pressed.