The answer is yes, you can turn a two-handed weapon (both melee and ranged) into your pact weapon with the Pact of the Blade feature, thus qualifying them for your Hex Warrior feature as well as your Great Weapon Master feat.