Yes, the doctor will ask about medical history. It is always better to disclose the facts. Doctor would anyways come to know about the surgery during physical examination, so no point hiding it. Rather, if you try to hide it, then doctor may assume that there is something wrong that he is trying...