Sure, unless like most people you’re obsessive about not letting that happen. If your phone dies just long enough to hide your location during a crime there’s other evidence of you committing...
...let’s just say you’d better be perfect in every other aspect of that crime.
I'm not. My battery died yesterday and I managed not to kill anybody.