Yes, MonsterInsights is a GDPR compliant plugin. It has a dedicated addon called EU Compliance that allows you to track analytics without collecting any personally identifiable information. You can anonymize IP addresses of incoming users on your site and even disable demographics and user interest related information from being tracked by MonsterInsights.