That’s exactly what keeps me buying Apple for my family and I. I credit their locked down App Store with saving me from spending hundreds of hours of my time dealing with malware over the last 10 years.
I've used android phones for a decade now and never once been affected by malware. If the issue is kids installing shady apps, you should probably use a parental lock for that.