Is this the correct way of measuring Zi in LTSpice?
The simplest way to ac-sweep the input impedance is to insert a high-value inductance in series with the dc source and install a 1-A ac current source at the input node. The below circuit shows the idea that I use for plotting the input impedance of switching converters built with average models:



The voltage-controlled voltage source automatically sets the bias point to maintain the collector to the desired operating point, e.g. 2.4 V in this example. Then, \$L_1\$ ac isolates this voltage source from the rest of the circuit and what you observe in the probe VZin is the voltage image of of the input impedance as the stimulus is a 1-A current source. In your case, unless you consider parasitic capacitance, it's more a small-signal input resistance you will have, equal to the 10-k resistance in series with the dynamic resistance \$r_{\pi}\$ of the base-emitter junction.

For the output impedance, simply move the 1-A current source at the collector in my sketch and you'll have a voltage image of \$Z_{out}\$. A 1-kF capacitor can be installed after \$L_1\$ to ground to filter the return loop in this case.