@eliasandholli That's how I get the Sam's Club membership. Those Groupon deals include a giftcard too.
For Costco I always hsd the Executive membership. I make sure all of my family members buy everything on my account and I pretty much end up with a free membership or close to it.