When your Arduino Uno arrives, upload the "Blink" sketch (is it in the menu: File / Examples / 01.Basics / Blink). Try to make it blink slower and faster.
Then you can try a tutorial for a button. For example this one: https://www.youtube.com/watch?v=5aR0cHKc-JA
Everything is possible with programming, every logic situation, every sequence, every timing you can imagine.
Sometimes a simple problem requires a complex sketch. The goal is to find the most straightforward simple and easy code to solve the problem. We can help with that of course.