Can you make use of railcard discount with a smart card?

Can I make use of my 16-25 railcard, on return tickets I buy and then load onto my smart card or will I have to stick to paper tickets?