Can I use my 16-25 railcard when buying train tickets online?

Or do you only get the discount if you buy the tickets in person?
2 answers 2