Depends.

Yellow fever is a risk in certain parts of Kenya, so it is always recommendable to get the yellow fever vaccine if you plan to travel to Kenya.

IMPORTANT NOTE: The Kenyan government requires proof of yellow fever vaccination if you are traveling from a country with risk of yellow fever. See HERE a list of countries.