[SOLVED] Activating a Button outside of Arduino

Hey,

The idea with transistor is what this picture shows?

transistor.jpg