XIAO nRF52840 fast digitalRead?

If the MPU executes a lot of code in an interrupt routine, could it miss the next interrupt?
What is the maximum frequency of the pulses from the encoder? (How much time is allowed between reading the encoder status and finishing the process?)