"If so" is much better. "If yes" sounds very clumsy, at least in American English. I can't say for sure, but I think speakers of British English would have the same opinion.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.