Yup, AF isn't the only thing that goes into a sharp image, but once the image is blurred, it's very hard to determine if the AF was working. I can see on the second image that you were panning, because the head, back, and tail are all clearly delineated from the background, while the corner of the wall is a wide blur... so good technique, but with too low a low shutter speed... unless you like the "artistic look".

Did the AF lock on correctly? Maybe. Very hard to tell at this resolution. Since you're panning, the AF all comes down to detecting an edge in poor light, rather than all the predictive motion and Release vs. Focus priority stuff that kicks in when tracking a fast towards/away motion. So many things for an AF system to potentially be good at.