Yes, you can buy a capacitive stepless control switch of ceiling fan (that is, the one installed in the wall junction box and rotating at will), and connect this switch in the middle of the power cord in the front section of the exhaust fan plug to realize control. Pay attention to buying junction boxes in case of accidents!
For high-power appliances, you only need to connect the regulating switch to the neutral line (negative pole), not the live line (positive pole).