If the engine starts and runs, the PCM is not bricked. "Bricked" generally refers to the PCM being in a nonfunctional state.

If this is a stock vehicle, that had otherwise been running OK, then a lean code is often the result of a dead or dying O2 sensor.

You described the DTC code as "bank 1 n2" - I am assuming you are referring to the B1S2 (or driver side downstream sensor - after the catalytic converter).

If this is a modified vehicle (i.e. camshaft upgrade), then a lean code is often a function of the fuels trims reaching the maximum allowed by the PCM - as the VE and MAF values are no longer representative of the engine's airflow. This type of lean code will be from the upstream O2 sensors though - B1S1 or B2S1.

Without more information, my best guess is a dead downstream O2 sensor ....