No, the digispark has a bootloader that will upload sketches without needing a hardware reset.
Presumably that relatively easy since it doesn’t simultaneously support a COM port over USB.
(A COM port would have to be transparent; a “native USB device” can just define an additional command "time to upload a new sketch.)
I did not know that, thank you!
PD: In case it helps anyone in the future, here’s how I did it in the end:
I just needed that pin to read the state of a tactile switch and I did not want to disable the reset.
I configured pin 5 as an analog input pinMode(A0, INPUT) and with a simple voltage divider and if(analogRead(A0) < 930) I was able to tell when the button is pressed.
I attached the schematic.
When the button is not pressed it should read 1023 and around 860 when it’s pressed, so around 930 is a threshold that worked for me. It’s important not to go much below that to avoid resetting the Arduino.
Thank you for your help!