An energy diagram for a pn junction at the instant of formation is shown in Figure 1–20(a).
As you can see, the valence and conduction bands in the n region are at lower energy levels than those in the p region, but there is a significant amount of overlapping.