Should be fine as I find CX and HKG airport are efficient, provided that the first leg is not delayed. But just in case you missed your second flight due to the delay of you arriving at HKG and you booked your journey all the way to JFK on CX, they should put you on the next available flight.