You can go as a guest with someone who has a membership. As far as I know, if someone gives you a Costco gift card you can go in without a membership. If you tell them you are there to consider a membership, they at least used to let you in. But you can’t buy anything without signing up.