Does Costco take any Mastercard?

I tried to use my Roger's Mastercard today and it didn't work. Does Costco only take certain Mastercards?

Edit: Thanks everyone, turned out the transaction ($196 iPhone wallet tap) triggered my card to get locked. I've had the card for a week and no issues. Now I have to go into a Roger's or Fido location to get it unlocked. Not impressed.