Of course - that's how trim, and auto trimming works. A constant input on the stick (or from the autopilot) is trimmed out using the Trimmable Horizontal Stab.
I prefer not to guess how other aircraft systems work, hence the question.
From this we can deduce that the THS movement was in response to the pilots input and not a cause of the initial climb or final stall event.