On Teensy, these functions do nothing when an out-of-range pin number is used.
If your program might ever be used on an official Arduino board, or some non-Teensy board that uses the core library published by Arduino, you might want to avoid this. Arduino's code does not properly check for out-of-range pin numbers.