For the most part, all ranks carried across all land based organizations. That said, both artillery and cavalry had ranks known as farriers, blacksmiths, and artificers. All these ranks were non combatants, same as quartermaster sergeants.
The differences of course would be in the thread colors: cyan/lt. blue for infantry, red for artillery, and yellow/gold for cavalry.