Sure but it would cost a ton of money and be a poor choice.
The RX8 is RWD and the 626 is FWD. You would need to convert your car to RWD which basically involves building a RWD tube frame car that fits under the 626 body. The rotary engine doesn't make much torque so putting it into a heavier car like a 626 would make a car thats very slow off the line. Your mileage would also be horrible which is another side effect of the rotary engine.