Theoretically "yes"
This comes with the specification of max frequency signal that you need to sample and hold.
Obviously you have control on selection of RC values to achieve it.
Then cap can get the stable input voltage and hold this voltage till MOSFET turn on again?