It's definitely possible, but for that you need to take a few steps, plus it's recommended that you don't wear the same pair every day, this is so you allow the sweat to dry completely before you put them back on your feet, which is which will prevent bacteria from appearing.
The best thing you can do for your shoes and sneakers is to prevent the problem from appearing and getting out of control in the first place. For that you should always wash your feet well (with soap) and let them dry completely before putting on your shoes. (Start by protecting your sneakers and shoes the right way.)
It is also recommended that you store them in a dry place that does not increase the possibility of moisture accumulation and, if they are washable, you should do so regularly, especially after a very intense workout.
You should keep your shoes in rotation (not wearing the same one forever) so that the moisture evaporates, you should always wear clean socks and even change them before and after training if you produce a lot of sweat.
It's about disinfecting your shoes after wearing them. You can kill odor-causing bacteria in a number of ways, such as putting your shoes in the freezer overnight (in a plastic bag) or using a special bacteria- and odor-killing spray.
White vinegar is a good disinfectant, so it is recommended to use a 50/50 spray of distilled white vinegar and water, which you should use on the lining and sole of the shoe, and then let it air dry for at least 30 minutes. minutes.
If you've done away with the bacteria, it's time to move on to the odor problem. Experts recommend using baking soda to neutralize odor, either by putting it directly on your shoes, or using a coffee filter, dryer sheet, or piece of cloth with a little baking soda and leaving it in your shoe overnight. Charcoal also works if you put it in old socks and leave them inside your shoes overnight.
Now you have to keep the shoes smelling good, for that you can place a bar of soap inside the shoes, this will help to absorb any odor that may remain. It's important to keep your shoes in a dry place, so you can also put some newspaper inside.
If your shoes are already too old, dirty, torn and smelly (and these steps are no longer working), then it's time to go to the store and change them for new ones.