It's
possible to drop any D-series motor into pretty much any Civic. It's harder in some than in others, but it's physically possible. The ones that are easier are the ones that originally came with D-series motors in the first place, which includes all of the 88-92 or so Civics, and a number of the later ones.
Here is Wikipedia's list:
https://en.wikipedia.org/wiki/Honda_D_engine
Note that the pre-1988 ones might not be as interchangeable as the later ones--not quite sure about that.
-soD