An RPI can work with high voltages and currents too.
All you need to do is put safety first and follow the rules.