Is it a good practice to call an activity in a loop?

See What is the best practice for a polling activity? - #2 by maxim and samples-java/core/src/main/java/io/temporal/samples/polling at main · temporalio/samples-java · GitHub