Please read the forum guidelines in the sticky post and provide the information you failed to include in your post above. Without that, the most accurate answer we can give is "maybe".
What I can say is that reading rotary encoders requires fast responses from the mcu, otherwise movements can be missed. Reading the encoders as part of a key matrix may not allow a fast enough response.