There are a lot of ways to disable Screen Time passcode. If your child knows the Apple ID of this device, he/she can reset the passcode by entering the Apple ID and password. Or he/she can use a third-party software like EaseUS MobiUnlock to remove the settings.