Yes, these two distribution numbers are connected. The distribution number provided by the securities company is the initial distribution number, such as 008788, so your two distribution numbers are 008788 and 008789 respectively.
Tip: If you purchase Shenzhen Stock Exchange, every 500 shares have a matching number, and 2000 shares are 4 matching numbers.