yes and no
Certainly, you can buy a gun from anyone anywhere and it will not necessarily be illegal.
However, a stolen gun is an illegal gun and in the context of my post referencing a $100 9mm bought on the street, the gun is likely to be illegal.
