I am really new to electricity. Is this correct? And what is the last pin

What pin is positive and what is negative is relative to the application does the device have a positive or negative tip? There is usually a diagram somewhere near the jack or on the product label.
It's better to use the term barrel (for the outer shell of the connector) and center pin (for the inside terminal).
The ? pin is a normally closed switch it is commonly used to power a device from either battery power or from an adapter but not both.
With nothing plugged in you should have continuity between the ? pin and the other pin that connects to the barrel of the connector now plug in an adapter (without power applied) and you should have no continuity between those two pins.
In a battery powered application you would connect the battery to the ? pin with no adapter connected the switch is closed and the battery will power the circuit. When you plug in an adapter the switch opens, the battery is disconnected from the circuit, and the adapter now powers the device.
The schematic symbol for a DC jack shows what I mean:
https://electronics.stackexchange.com/questions/2381/deciphering-a-dc-jack-schematicIn the diagram at the link above Pin 1 is the barrel of the connector, Pin 2 is the switch, and Pin 3 is the center pin.
If there is no continuity between the two pins then odds are the extra pin isn't a switch and is being used for data possibly adapter identification.
I had an old Dell laptop that had a simple 3 pin Dallas microcontroller in the adapter they used the tiny center pin to send serial data to the laptop if the motherboard didn't receive the data (often due to a broken pin in the adapter connector) or didn't like the data it saw it would refuse to charge the battery and the BIOS would throw an error message.