I think this would be different for someone not on parole. So like if you're just speeding and get pulled over I believe they would be violating the law/Constitution if they forced your thumb against your phone.
But they probably do it anyway so good idea to follow the lock down above in this thread.
(Also don't use electronics to do crimes y'all.)