I work in a company that makes sanitizers. Now they are shifting their business to extracting cannabis/marijuana that will be used for recreational and medical purposes. Can I work in the feild of logistics/inventory/sales and many other areas in the feild?

No problem, as long it is used as medication.