"IMA strongly opposes any attempt or activity for pre-natal determination of sex of foetus," the association said.
"We strongly feel that public figures like Shah Rukh Khan, who are role models for the youth, should set a precedent by their good acts and refrain from such illegal activities," it said.
"A proper investigation should be done in this regard. Suitable legal action should be initiated not only on the guilty medical professional, but also the public who approach the doctor for carrying out such a determination," they said.
According to reports, Khan and his wife, who already have a son and daughter, were planning to have a baby boy through surrogacy.
Pre-natal sex determination is illegal in India. A provision for legal action and penalties exist in the PC-PNDT act both for the medical professional involved and public who request such an action.
Mumbai Roundup: 9 incidents that took place this week
Photos: Ajay Devgn, Parineeti, Tabu at 'Golmaal Again' trailer launch
Photos: Dipika Pallikal Karthik oozes oomph in bikinis and sarees
Photos: Kareena Kapoor Khan's grand birthday bash
Photos: 'Dangal' girls Sanya Malhotra, Fatima Sana Shaikh's dinner outing