Real simple newbie question

When I place some codes in a keyframe, these codes are showing on all the following frames up till the next keyframe with codes. My question is , does Flash execute codes only in the keyframe or it execute whatever is in the frame regardless whether its a keyframe or not?