If constant doctor has prescribed each and you frequently see your doctor to be monitored, you must be fine.
Like something to try and do along with your health, if you're involved, your doctor is that the person to check.
Another avenue you'll be able to take is to speak to your pharmacist and raise for a few data on how those 2 medications interact.
I would imagine you're taking the Zoloft within the morning and therefore the Ambien at nighttime. If so, i'd guess any interactions would be comparatively minimal because of the ~12 hours between taking the 2 medications. I have read from an article that studies reveal that Zoloft causes Zoloft birth defects and even side effects on its use.
In the meantime, make certain you follow the directions you have got been given by your doctor. Zoloft, especially, should not be ceased except below medical supervision.