No.
Take a look at this:
https://www.amazon.com/Iot-Relay-Enclosed-High-Power-Raspberry/dp/B00WV7GMA2
All the A/C is contained inside the plastic. The little green plug connects to the controller on the fan port, and you don’t have to change the firmware. There’s not any more chance of hurting yourself than a regular power strip.
These are mechanical relays, and they are a lot cheaper:
These will work. But they are controlled by 5V, and you have to cut the power cord that carries 120VAC. The result is a lot more dangerous. If you knew the dangers, and you were taking responsibility, then it’s fine. But if you’re asking about wiring, I would feel a lot better if you chose the power strip version.
The SSRs are very similar to the second choice.