Yes, I've also done this before by accident on a few occasions. The while loop repeatedly calls the function with the
other while loop in it, thereby adding it to the number of functions running (there can be many instances of a single function running at the same time in Acknex). Because this goes on forever (until the engine is closed), eventually the number of simultaneous functions running will be so high that it's gonna really cut into your game's frame rate. Try to avoid making this kind of mistake.
