Is there a way to use a potentiometer instead of an encoder? MIDI and MCU

isn't the pot read within the library I am using?