Borrow and repay IRA

I am buying a new home (not my first home). Can I borrow/use funds from my Traditional IRA and/or ROTH IRA and repay the monies in a certain timeframe so they are not treated as distributions?