Cargo pants are generally considered casual attire and may not be considered as professional in most formal settings.
It is generally advisable to opt for trousers or slacks that are tailored and have a sleeker design.