Is it possible to create a card game that randomly pull cards from different “decks”?

Is it possible to create a card game that works similar to something like this: https://whatthedeck.psu.edu/play/ There are three card categories. Each category has about 15-25 cards in it. When the user click on the blue card, it randomly pulls a blue card from the “blue deck”. The same happens for the red and green…