Replace manual potentiometer with a digital one

Without knowing anything about the circuit the risk of electrocution means the only
answer we can give is 'no'.

Without opening it up and taking good photos there's nothing more to say really.