You can trade in your vehicle in your chapter 13, but your car creditor has to agree to release the lien.
Before you trad in you car before filing chapter 7, talk to your bankruptcy attorney to avoid problems later on. It could be considered a fraudulent transfer which the trustee could avoid.