Implementing GPIO temperature control possible?

Hi,

Not to familiar in Linux and Umbrel inner workings, so I wanted to ask here before I start soldering. So basically I’m wondering if it a process/software problem or not to implement the temperature control using GPIO pin + transistor + fan as described in the link below? To be specific, will I be able to have a cusom temp control script running alongside/parallell Umbrel?

Thanks. I love Umbrel!