There are so many things (slightly) wrong with this thread...
1. There is no 2N2222 in KiCad's default libraries, and you did not mention which exact footprint / symbol you used.
2. 2N2222 is a TO92 device.
3. You show a datasheet of an MMBT2222, (and that is a SOT-23 device).
4. MMBT2222A is in KiCad's default libraries, and it's pinout is the same as in the datasheet you show.
KiCad also has generic transistor symbols. Have a look at the Q_NPN_XXX devices, where the XXX is EBC in all 6 possible pin ordering combinations.
So be careful with the assumptions you make. As fourfathom mentioned: Pay attention! In PCB it is common to use the Trust, but verify approach. It is common to do a careful check for pinout for each and every library symbol and footprint you use, and then create personal libraries for all parts that you use and have been verified to be correct (or corrected). In the old days when having PCB's manufactured was expensive, this was all the more true, but even with the cheap PCB services, a faulty PCB can cause a delay of weeks for your project. Sometimes faults can be very subtle, for example some transistors can be bought in different pinouts, even in the same package. Another historical fuckup, is that the location of pin 1 on a SOT-23 package is not defined unambiguously, although it seems the "alternative" pin numbering for this package have become very rare.