The short answer is no. If the police believe they have probable cause, they’ll search your vehicle for evidence of a crime.
In general, the Fourth Amendment to the Constitution of the United States provides protection from unreasonable searches and seizures by law enforcement. If police search your vehicle and you did not give them permission, nor did they have probable cause, then your constitutional rights were violated.
Although the fourth amendment of the Constitution of the United States provides some protection from unlawful search & seizure, you don’t have the same expectation of privacy in your vehicle as you do in your home. In fact, police often collect evidence illegally from defendants’ cars and use it in court.
I always advise my clients to activate their cell phone’s audio recorder to capture as much audio as possible during police encounters, which can then be used by the defense.
Police can search your car without a warrant if they have probable cause or if you have given the officer consent to search a vehicle. Furthermore, if the officer has good reason to believe that a search is necessary for their own protection, they may do so. They can also search your vehicle without a warrant if you’ve been arrested and the search is related to that arrest.
Police can also search a vehicle that has been impounded or towed. Even if you are not arrested for a crime, but the car was parked illegally and towed, the police can search your vehicle as a matter of inventory records or for whatever reason they wish.