Yes, some bacteria can perish if they are deprived of oxygen. A large number of bacteria are obligatory anaerobes, meaning they need oxygen to thrive.
Since they cannot develop or reproduce in an anaerobic (oxygen-free) environment, these bacteria will perish if they are deprived of oxygen.
However, certain microorganisms are cultivate anaerobes, which means they may thrive in either an aerobic (oxygen-containing) environment or an anaerobic one.
Depending on the amount of oxygen present, these bacteria can flip between aerobic and anaerobic metabolism and can endure in either environment.
It is significant to remember that bacterial species can differ in their capacity to thrive in the absence of oxygen. Some bacteria are more able to survive without oxygen than others, and some may be able to endure longer in an anaerobic setting.