Can a honda D17A2 engine fit into a car which used to have a D15B2?

I'm curious as to if I could have just dropped in my 2002 si civic engine into my 1991 civic sedan

Hi so how does it mange to run without it's own EMU.