Yes, when you kill the bacteria with alcohol, vinegar, lemon juice, it works. When I worked indoor and my sweat was very bad at this time, I simply went to bathroom several times a day, and put a little bit of soap on my armpits, and no odor, soap works better than deodorants and are much safer. You can also use essential oil, they are very efficient and is a good way to perfume your armpits (diluted in oil, not pure)
Deodorant are awful also because they try to hide the odor behind another odor, but we can ofter the sweat odor behind the second odor.