soft control of INA gain

I wonder whether it can be possible to use the analog output from arduino to set the gain of an instrumental amplifier. The gain of an instrumental amplifier if set by the value of a resistor; could I substitute this resistor with a FET and use it has a voltage controlled resistor, where the voltage is that from the analog output of arduino?

Being particularly pedantic, I’d have to say that the Arduino doesn’t have any analogue outputs.