I have a Raspberry Pi 2 model B, and whenever I connect a resistor and LED to the 5 Volt pin and the ground pin it immediately turns on without any programming to enable it. I just want to know wether this is normal behaviour, since I thought that you're supposed to turn the pins on programatically.
The 5V pin is always "on" in the sense that you mean it. It is not one of the GPIO pins, even though it is on the same header and looks the same. The GPIO pins are the ones that you can control programmatically.