I think so – since there is a time limit for banners, if there is a GIF which loops, it will violate that limit.
This is a time limit set by the IAB, which ad networks generally adhere to: https://www.iab.com/guidelines/html5-for-digital-advertising-guidance-for-ad-designers-creative-technologists/
They actually advise to not use animated GIFs at all: