Which Shogunate? There was more than one...
Yes, there were several families of shoguns, starting in the Middle Ages, with the last family (Tokugawa) being deprived of power as late as the 1860s, but the original meaning of the term reportedly was “barbarian-fighting general.”