Yes. You might consider saying "If it was" rather than "If yes", but what you have is not wrong.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Mr. TomIf yes, then I have ...I think you mean If so, then I have ... (or as GPY advised)
Mr. TomI notice that the use of 'if yes' sounds off to two native speakers. I would like to explain that it is a very common collocation in Indian English.It is fairly common in BrE too and would be widely accepted in everyday language. I would not recommend it for careful or formal English, however.
Mr. Tom'if yes' ... a very common collocation in Indian EnglishHmm. You learn something new every day. I don't recall ever having heard it here.
CalifJimWe say "if so" and "if not".Of course, these are also used in BrE.