It will fit just fine, but you will need to bring the accessories (alternator, power steering, a/c compressor) from the B230 with it, the B21/23 brackets won't line up on a B230.
If it is an LH-2.4 B230 you will also need to cut a notch in the bellhousing to make space for the crank position sensor.
If the donor B230 is automatic, you will also need to find a flywheel with the trigger wheel cutouts on it so the crank sensor still works.
You'll also need to get a catalytic converter added to the exhaust, as well as a bung (just before the cat) for the O2 sensor.