Taking Ambine and Zoloft at the same time

Patient: I have been taking Ambien 20mg for the last month. My doctor now prescribed me 100mg of Zoloft but he wants me to take it at bedtime. Is it ok to take both of these medicines at the same time when going to bed or shall I take one shortly before the other?

Doctor: