Hi Srividya, Yes, if u take certain precautions then most certainly its okay to have sex during pregnancy
. Usually beyond 12-week the risk of spontaneous miscarriage
falls considerably, but it would be always wise to ask your healthcare provider as she is the best person to know your complete medical history (past and present both). Regards and have a safe n happy pregnancy.