Hacs rpi_gpio switch

Can we retrieve switch position information via the gpio port?
I have the rpi gpio module installed
Do I need to install another mod?