Loading indicator on modal dialog

I wonder how is it considered from UI experience, to show users a loading indicator however, in a modal dialog? Is it considered fine practice? e.g. such as this https://www.google.com/search?q=loading+modal&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjN5vmCuYjlAhXGJpoKHVSEBi4Q_AUIEigB&biw=1366&bih=635#imgrc=hy5m5qBCdnA2-M:

It has some technical benefits with synchronization because user can't make multiple requests, but won't dive here.