Can a 16.L engine fit into a 1998 Honda Civic LX? (before doing engine swap)?

I had an blown motor on my 1998 Honda Civic LX, I have new spark plugs, distributor cap and some other items, however, since the old spark plugs happened to be melted as well, I have no option other to do a engine swap. I've been doing some research, and it seems like I only have the 1.6L engine as a option.

By the way, the blown motor is a D16Y8, and is automatic.

Finding another used D engine should be easy; D engines are not your only option though. Tuners ditch their D engines for B engines when they are modifying their Civics for performance.