I've tried to use Pins 0 and 1 of the Teensy 4.0

I can use Pin 1 but only as input, and Pin 0 only as Output (not as Input)

But I can not use pinMode for these pins. Is there a specific reason?

In the Arduino Teensy 4.0 Settings menu I can also not disable "Serial"