Yes, it is very much possible. It's done exactly the same as an H22 swap into your chassis, so read up on that for the specifics. Honestly I don't think it's worth it though. It's not a bolt-in kind of swap. You'd have to do some fabricating and buy expensive custom engine mounts. Also, it's a tight fit into the engine bay and it will add some weight to the front of your car. It's not really a daily-driver friendly type of thing.
If you're going to go through all of that trouble I'd at least do an H22 instead. Unless you're getting the motor for free and you can fabricate, I'd say it's not worth your time...