It depends. As we know, FP is all about not having side effects. Having “for” loop requires to mutate the pointer of given iteration.
The "function" in "functional programming" refers to mathematical functions, which are fixed mappings from inputs to results with no side effects. If your "functions" can have side-effects then they're not functions, they're procedures. Programs composed of effectful procedures are imperative, not functional.