No. They'll arrest you just the same for obstructing their search. Then they'll keep you in detention for a long time while you say "I can unlock it for you! You just have to let me out!"
You can pretend you have leverage and say they need to cooperate with you. But once you're detained, police and prosecutors don't really care about cooperation anymore. Their idea of cooperation is you giving them what they want immediately without question. You're made into an example if you don't abide.
And we're living in an era where immigration enforcement can shoot Americans without penalty. It just makes the claims that the government can't arrest someone come across as naive.
This is not to say that things aren't bad, or abuses never happen. But if people fail to exercise the actual power and rights they do have, under a mistaken belief that they have no power and no rights, then that will become a self-fulfilling prophecy.
They would quickly learn of this feature and stop inputting pins given by users until they can consult forensic experts. I expect this will happen with all passwords handed over on pixels since this publicity.