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

I have a case where I need to send requests to a REST API in a busy loop to check if something has changed. Is it considered a good practice to call an activity in a loop until there is something I expect in the response? Maybe are there any other cleaner way to achieve that with Temporal?
Thanks

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