Yes, microG GmsCore is an open source software and it does not contain any malicious code or spyware. It is safe to install microG in your Android phone.