This is a perennial question in English. Most people would accept your sentence in informal English. Some people would object to it in formal situations and prefer "his or her".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.