Cards for heroes that you have not unlocked are usually not available to the players, but the Casino is special. If you get a card for a hero that you have not unlocked from the Casino, you get the hero when you use the card.