Programing Arduino UNO with h bridge stepper motor nema 17 and potentiometer

connanschilling:
if i connect the potentiometer to the analog read, i should connect the h bridge ass well, right?

Yes. The h-bridge and the analog input are completely separate and would need to be connected on separate pins.