Can you swap a 4age into a 94 corolla base model?

Hey I’ve been wondering about this for a while now and I kind of want to put my plan into action. I have a 94 corolla base model, it currently has the 1.6L 4afe engine. Would it be possible for me to swap in a 4age 20v blacktop into it? Also another side question, my car was in an accident before I bought it but I over looked it in the paperwork and the seller never mentioned anything about it, should I even attempt to build the car if it was in an accident? The suspension kind of sags to one side but it really isn’t that noticeable and the ride is about what you’d expect from a 90’s car. Ride quality isn’t my main concern since I kind of want to make it into a lowered sleeper build.