Hi thanks for your question.
One important point in history you have not mentioned is duration of pregnancy
. Anyway surgery 4 month back, is not going to harm your pregnancy now. The only fear is the teratogenic effect of the drug which you received during surgery and effects of drug which taken in post operatively.
Anaesthetic drug used during surgery don't have any teratogenic effects.I would suggest you to consult a gynaecologist,who may be able to examine you and get your ultra sound
done to rule out any congenital abnormality of your baby due to the effects of drugs used,postopeatively.there is no special precautions which you may have to take for this pregnancy except the usual one, avoiding stress
, taking adequate balanced diet. Your gynecologist may advice you some more. Hopefully you will be able to carry your pregnancy to full term.
Hope this answers your question.