Replacing Arduino Micro with Teensy 4?

Quick question - Can I just replace the Arduino Micros in my various sensor systems (ToF & capacitative; TCA multiplexers) with Teensy 4s? (I’d like the movement and touch sensors to be more responsive; I imagine a faster processor will help!)
thanks
David