MKR 1010 Wifi Transistor 3V+ 5V

Yes that is what the code has been programmed to do.
Remember the loop function does just that, it loops. The only thing slowing it down is that delay.