I understand if you get on a train at a station that can't sell you the ticket you want, you need to buy it at the first available opportunity, ie on the train, at a station where you change trains if there's enough time, or at the end of the journey. Does this also apply if you wanted to buy a railcard at the beginning of the journey and the boarding station couldn't sell it,or is that a completely separate matter?