The powertrain warranty is usually 5 years or 60K miles. Bumper-to-bumper warranty is around 3 years, I think. I would be OK with the loan for as long as powertrain is covered, at the very least. The modern day turbo engines have exceptionally low reliability, it will blow while you still owe quite a bit for the car.
I'll add a disclaimer here that I don't buy new cars or trucks, so this doesn't really apply to me anyways.
My family's limited experience with powertrain warranties is that they don't mean anything. The manufacturer put a junk engine in my Dad's truck at the factory. When they replaced it, they replaced it with a junk engine. When confronted with this, the dealer claimed it was not reasonable for a replacement engine to run without issues. Neither made it 30,000 miles.