Dumb questions from noobs like me

Is there an easy way to code a card draw while still taking the respective card out of the deck?