Do automation actions return step results? Can we use them further down the automation stack?

I understand that the trigger has a “step result” that can be used in the automation actions under the “Then” section.

But if I were to add a “Script” action in the first spot, could further actions down the automation stack use its return value?

What I’d like to do is to have the first “Script” action return data from linked entites, and then in the second action step, have that data sent in a GPT prompt and use the return value of the prompt to update a field of the entity on which the automation was triggered.