Is it possible that the step count data got from HealthKit is inaccurate in some cases?

I'm developing an app that uses HKStatisticsCollectionQuery to get daily step count data from HealthKit. I am using initialResultsHandler.

The following cases have occurred.

When the app got the steps on November 30th, the number of steps on November 29th was 7699 steps. Then, when the app got the steps again on December 1st, the number of steps on November 29th was 16011 steps.

Is it possible that an inaccurate number of steps is returned temporarily, and then the correct number of steps is returned when reacquired? Is there a way to ensure that I get accurate step count data from the beginning?

I have the same issues, when i use HKStatisticsCollectionQuery query user step count, there's a big difference in the number of steps I'm query before and after a minute's interval. 2023-12-17 15:45:41 steps=529 2023-12-17 15:46:52 steps=5817

2023-12-19 19:43:59 steps=2680 2023-12-19 19:44:31 steps=5554

Is it possible that the step count data got from HealthKit is inaccurate in some cases?
 
 
Q