You can connect the encoders to the GPIO pins but it is becoming increasingly involved as various pins get low level functionality. Personally I don’t do it any more as I’ve had to reallocate specific pins for the reason I outlined above and it canbe quite an involved process detecting this when your natural first suspicion is you’ve got a hardware fault somewhere… There is a handy chart on zynth discourse somewhere. if you do want to give it a try…