Unisom?

I am at risk for preterm labor (33 weeks) therefore I basically don’t sleep anymore because my mind is constantly racing. Is it safe for me to take unisom? My cervix is 1.5cm dilated, soft and baby is very low. I just don’t want to take anything that could make it worse.