Yes! While you are volunteering your knees and shoulders are always to be covered, this is out of respect for the teachers, students, and children you will be volunteering with. While you are out and about the city you are free to wear whatever you are comfortable wearing, however keep in mind that the women in Kenya dress conservatively, so wearing shorts will likely cause you some extra attention.