Any idea on how to build a adc~ with JUCE?

Hi, sorry for posting such a low-floor question.

I have read the juce demo recording/playback code and I am wondering if I can just combine them together to make a adc~ -> dac~ and manipulate the sound inside. Is it a correct and efficient way to do this?