Real estate Investments with IRA money

Can I use IRA money to invest in real estate without being considered a distribution subject to taxes but rather an IRA investment choice that will be taxable (initial invested amount + real estate gains) when the property is sold if the original funds came from  a Traditional IRA or pay no taxes at all on real estate gains if original funds came from Roth IRA account?