Can i change a clip's frame with code?

for example, I made a running animation so I have to pause the animation at the first frame when not moving, and then when the character is moving the animation plays.

how do I get this to work?

gotoAndStop(frame)

thats it