Photo tagging - airport

If a plane is, say, 5 or 10 miles away from an airport but is either landing there or recently taking off from there, are we supposed to add the airport code? Or is that supposed to be only for planes actually at the airport?