Yes and no....they need a warrant and/or probable cause (ie, drug dog can smell pot, etc) as long as you don't consent to letting them search it. However, most cops just use the intimidation factor and the threat of jail, etc to get you to consent. Be strong and tell the cops no, they will give you a hard time, threaten you etc but you have to know your rights.