He was indeed, the captain of the French King's guard.
When my family lived in France for a while in my childhood, I had a fine d'Artagnan costume, despite being a little girl. Complete with feathered hat, crimson cloak and silver plastic sword, but no musket.