depending where you call it from there's no reason to doubt it will work
if you're trying something like
then dependant on how many functions are being called, it's probably best to use wait(1) (e.g at every 100th iternation), though if you're only writing something like
for(i=0;i<3;i++){
...
wait(1);
then it's not really worthwhile the engine wait 3 frames for 'no reason'
as a rule i only use wait(1); if something is going to be hogging the cpu, and if it's not critical it's done by a certain time
otherwise i'll use wait(1) while i'm waiting for something to happen, obvious reason while(!player){wait(1);}
but if there's a function that's returning a result, then you'll undoubtedly require wait_for() but you need to ensure this is the only time this function is being called and returned