Passing variables to other steps

Can you do export VAR=value in a step? I’ve not got an example to hand, but I wonder whether it would help.