Yes, before becoming the master-at-arms at Castle Black, Ser Alliser was a ranger. After arriving at the Watch, he worked his way up for many years and eventually became the master-at-arms.