No, it is not legal to buy a gun with someone else’s bank card. This is known as a straw purchase, and it is a federal criminal offense. Straw purchases in many cases are used to illegally receive guns for people who find themselves prohibited from owning them, for example felons or domestic abusers