Is B pin of BJT always in the middle
No, sometimes the base is on one side instead of in the middle position. It is important to know the exact part number. With a data sheet of the transistor you can desume the position of its electrodes.