Yes! Don’t worry it is very safe! I have come back from there recently and there were no problems at all regarding safety.
If you are still unsure check out my covert video I took in Nairobi. Kenya has just had its elections so things are calm again and stable through 2018.
Kenya is open for business and I recommend you do what I did and visit the Zoo just outside Nairobi. You can also go on Safari in Kenya but that is if you have a larger budget as its not cheap!
Enjoy your stay in this great country!