Only if it’s peeled and processed.
Unwashed fruits and vegetables should not be eaten raw because they can contain bacteria like “E. coli,” which is found in fecal matter and can cause stomach and intestinal infections (like “food poisoning”). When you peel a fruit or vegetable, you get rid of the contamination that would be inside otherwise.