You can use a Pay-Per-Ride MetroCard to pay for the AirTrain, but you will need to purchase a separate LIRR ticket from a ticket vending machine or the MTA app.