Yes. There are two types of gateware I/O, one output-only and one that can be switched between output and input mode at runtime. The type of I/O is defined at compilation time and changing it requires rebuilding the bitstream and reflashing the board. What board/variant are you using and where did you get it from?
With the Sinara cards, you also need to set the direction DIP switch accordingly.