Is getting a warranty on used car a good idea?

I’m looking to buy a used car , is getting a warranty a good idea in case it needs repairs? Or I should avoid doing this
19 answers 19