Yes, you are correct.
Just make sure of one thing: a dipole will form at the interface between A and B because of the chemical/physical interaction between the two materials. You have to make sure that this dipole is well screened at the boundary with the electrodes. To do this, just unsure that the A and B parts in the central region are long enough. You can check that the potential is well screened by looking at the Hartree difference potential of the device, which has to be flat close to the electrodes. There is a more technical explanation of this in the tutorial I posted above.
Regards,
Daniele.