well, it depends what “device” it is hooked on them, i guess. there is no universal rule for that.
you have to take into consideration the pins default behaviour on startup and think about how it will affect your application: for example if you have a mosfet gate on a pin that goes high at startup for some milliseconds, and that mosfet opens your garage door, it is a bad idea… it will open your door everytime the mcu restarts.
if the mosfet just turns on a light, it is no problem if the mcu restarts and the light will be on for 100 millis.
also, if you hook up a small relay directly to a pin, and the other end of the coil is connected to vcc / gnd, that relay can act as a “pullup” / “pulldown” resistor. you have to choose carefully and avoid to change the state of the pins which must be in a specific state for proper boot.
use common sense and EXPERIMENT for yourself.
for example, in one of my projects i found out that even if gpio 2 theoretically has to be high for proper boot, it still boots properly if it pulled low. i do not know why, but it works.