Do you mean if it's a good idea to invoke adc1_get_raw or adc2_get_raw in an interrupt routine?
If so, I don't think it's a good idea as invoking these functions involves spinlocks which isn't a good idea in an interrupt routine. See
here.
In order to get good ADC readings multisampling is likely to be needed. Some of the esp idf examples sample 64 times to get a good readings.
Here is such an example . Sampling 64 times will take over 2 milliseconds which is quite a long time.