Can a 1995 Honda Civic engine fit in a 1999 Honda Civic?

Yes, but it is a federal offense to put an older engine into a car that is newer.