engine replacement on 1995 BMW 318is

Can i put a 94 bmw 318i engine in this car? are all of the "i" engines the same?

You had better talk to a Beemer shop for that information. Engine installation requirements are very specific.
If you want to find a specialist, here's a directory link for you: