Yes but ...
If the infantry is bypassing a building - such as G1, then it can't end it's movement in bypass of an offboard building so it will need a further 2MF (either to move into the offboard building or to bypass the building into the next offboard open ground hex).
Would that mean that...