The app itself is legal, but whether it’s OK to use it largely depends on your location and local laws. I advise you to carefully review the laws and regulations in your area. In the majority of countries, using the app for monitoring minors is permitted.