You could gamble on it and it could be fine, particularly if it's the same airline and you're sure it's the same terminal (there are several terminals), but it would stress me out too much. Are you flying internationally on your second flight? That's usually why people connect at JFK, and an hour is not enough if so.