That could work, if you don’t over clock the i9-9900KF will boost to 4.7GHz all cores provided you cool it well enough, better than the 3.9GHz all core boost for i5-9400F.
And if you’re using a Z390 chipset motherboard, you can overclock it even further.