Switch between i/o pins without using a push button

Hello everybody

I am new to Arduino as well as programing hence asking for assistance

I have few codes , so I'd like to assign each code to individual different I/o pin
let certain pin run for "x" time ( apply timer? mill function?) and then
switch to a different i/o pin to run the next code for "y time" but without a push button, but make it switch by it self after certain time
is it posible?
In case it is could you please inform me which topics to study in order to accomplish it? your help is highly appreciated
~cheers

Arrow008:
I have few codes , so I'd like to assign each code to individual different I/o pin
..
..
let certain pin run for "x" time

It might help you get some replies if you could clarify what it means to "assign" a code to a pin, and for a pin to "run".

Can you perhaps give an actual example of what needs to happen?

Do you mean pin "x" needs to (say) blink on and off in a certain pattern and when that's done, it moves to pin "y" with another pattern? Or what....

It sounds like you want part of your program to run for a period of time and then change to a different part without user intervention.

Can you please conform that is what you want ?
If not, then I don't see what different pins has to do with it