No,
Instead use a function that calls itself with a schedule like so:
function loop(%num, %delay)
{
//Do loop stuff
%num--; //Decrease remaining loops by one
if(%num < 1) //Checks if we have reached 0, then stops
return;
schedule(%delay, 0, loop, %num, %delay); //Calls this function after the specified delay
}