You can only have one of each, if you assign a new surgeon, the old one will be replaced
But as a surgeon, their medicine skill will increase as you heal soldiers from fights in town. As a quartermaster their stewardship skill will increase (I think?) As an engineer, their engineer skill will increase etc, outside of whatever skills they learn in battle
Right now, it seems only combat and medicine companions are available, I'm sure more will come in updates.