No, It is not necessary to Install MicroG. You can use the Modified Version of YouTube App Without Installing Micro G, but You'll not able to Sign in on the App. To Sign In, MicroG becomes mandatory to install.