Carrying medicines is important while trekking anywhere in the world. Your first-aid should have anti-diarrhea medicine such as loperamide but make sure that you don't take it unless getting to a toilet isn't an option.
During the trekking, you may not have access to pharmacies. So it’s better to have medications ready. Yes, you can carry diamox and can be taken too if having sickness/nausea.