Even though many people say that it's safe to take melatonin in small doses while being pregnant, there is no extensive research that would show a long-term impact of this medication. Thus, you should avoid using melatonin and set a comfortable sleeping environment instead - get a pressure-relieving mattress, sleep with the cotton pajamas and do relaxing activities before bed.