Different boards will have different sets of pins. If you are following a guide or other information that requires use of an A2 pin, then it is limited to boards with an A2 pin. Otherwise you'll have to adapt the code for the board you are using. Also keep in mind that the Raspberry Pi has no analog inputs at all.