Most likely.
If you file before the vehicle is sold, the Automatic Stay that gets imposed stops the sale. You can then go back and work on how to pay the arrears. If its a Chapter 13, then they are simply in the plan.
If the car has already been repoed, then make sure you call the bank (or whomever you got the loan through) and tell them you filed. Give them the case # and the chapter.