Gatwick Train Station is nestled right next to the South Terminal of Gatwick Airport, so if you are leaving from the South Terminal, it only takes a few minutes to walk to the check-in counters or security. If you are leaving from the North Terminal, there is a free inter-terminal shuttle service, which leaves every few minutes, 24h a day, and takes just a few minutes. It is not possible to walk.