It's not really a position you can force from further away than one move, since it would require complete cooperation between the players to create such a position.
But yes, given a chance to get into this position, sure it will - e.g. given https://en.lichess.org/analysis/8/p7/kpP5/qrp1b3/rpP2b2/p5b1..., it will correctly play b3 and force the original position, since everything else results in a mate that it can see. All it needs for correct play is to rank the alternatives in the right order, and mate ranks below playing on with a material disadvantage.