You can use Screen Time to prevent unintentional or unauthorized purchases from the iTunes Store.
If you don't want to prevent in-app purchases or disable purchasing completely, you can require a password to make purchases.
Need more help?