Not necessarily, there are two situations in Hong Kong stocks:
The closing price is equal to the last U-shaped transaction price.
During the period of 15 / 59 / 16 / 00, the system takes the closing price every 15 seconds and takes the median of the five trading prices as the closing price.