Is it really ok to use it?

I was always told if fruits and veggies has mold you just take or cut the bad part off and it's still "good" to use right now I have onion that has very little mold only on the root of it so it got me thinking if that really is true or not

Dont worry not going to use it I never play games with it comes to my family health