Stupid question about variables

if you use a variable in one frame can you keep using it in others?

or do you need to declare it as a global variable if so how do you do this?