Yup. Three major lines (BMT Nassau, IND Sixth Ave, IND Eighth Ave) converge in Jamaica, where it's only a few minutes' walk to transfer to the AirTrain to JFK. I've never had a problem getting to/from JFK via train, but LGA is a little tougher (though the increased 125th St. bus service has helped a lot).