Why yes you do and don't forget to set the pin as an INPUT.