Sleeping medication while pregnant.

Is there anything i can take? Just found out im pregnant and these past 4 days have just been bad on not being able to sleep. I feel so exhausted is there anything im allowed to take?