They do have some modifications to this. Remember procaryotes don't have mitochondria which is where respiration happens in eucaryotes. Must however get rid of protons by some proton motive force. Procaryotes use the cell membrane for the proton motive force required in electron transport chain. Called Chemiosmosis in eucaryotes and the mitochrondria do the pumping out of the protons.
Bacteria use the cell membrane.
Some bacteria have other ways of making enough energy to live and can't do aerobic respiration or can but have other choices as alternatives. Depends on what enzymes, cofactors, and coenzymes they have. The final electron acceptor in anaerobic respiration is an inorganic oxygen atom containing molecule like SO4, NO3, PO4, CO3. Story about phosporescence in grave yards. Generates varied but relatively large amounts of ATP using both substrate level and oxidative phosphorylation and requires a proton motive force.