Whenever I give my baby oranges he gets a butt rash. I read it could be a food allergy. Could it be or just a coincidence?

Chemical irritation. The acidity of the oranges is likely changing the pH of stool, which can be irritating to the delicate skin of the diaper area. .
Food allergy. certainly possible, I would avoid oranges until child is older.