I guess so. If the phone is being seized. But recently people got in trouble for wiping their phone during random events such as going through Customs.
my thinking is more for random unlock requests which are ridiculous to start with. I'd rather pretend a seemingly clean phone (you can always have a dummy gallery and dummy files on it) than refusing access or wiping the phone - probably leading to detainment.