In a private, FTF deal, it would be illegal. If a purchase from an FFL, yes, the purchase is legal but, delivery must be to the home state and 4473/transfer apply. An exception is if an officer is sent to an out of state FFL with a letter of authorization from the CLEO to purchase a duty weapon.