Yes. Most states allow emergency certification waivers in high-demand teaching positions. Also, certification tests are kind of a double-edged sword. On the one hand, I've known STEM teachers who actually double-majored in their content area and education who took multiple attempts to pass the content specialization test (which usually covers through most of bachelor's level skill/knowledge, but not beyond), which does not bode well for depth of knowledge. On the other hand, I've also known teachers who had had no systematic instruction in a content area pass the test, which either means it's a meritorious system that doesn't discriminate on the basis of how you acquire your content knowledge, or that, if you focus on the five or six topics most likely to show up on the test, you can fake your way to a credential without a more comprehensive knowledge of the field.
On the "plus" side, the absurd oversupply of history post-graduates has resulted in a recent bumper crop of highly-qualified content specialists among high school history teachers, including those at the doctoral level. A few of them can even teach.