Yes, the ride from the airport is about an hour either by train or taxi(depending on traffic) It would be tight but you could see Times Square or Rockefeller Center & Fifth Avenue stores - and then go back to the airport. Here's the link for the train to NYC.
http://www.panynj.gov/airports/jfk-airtrain.html
Time for sight seeing