Loading indicator on modal dialog

From a technical point of view, a loading animation benefits with synchronization because user can't make multiple requests.

What are the implications of using a loading animation in a modal window? Is it considered an acceptable practice in terms of user experience?

e.g. such as this Loading animation in a modal