If the flight leaves JFK on time and not significantly delayed on the ground (never a sure thing) then may be enough time for a shower. Otherwise probably not. Note there is usually a queue for the showers, which can take more than an hour (thus could be too long for you even if flight arrives early).