Unisom safe to use as a sleep aid? Thoughts/comments pls

I have been having issues sleeping my doctor suggested using unisom? Has anyone used it and has it helped?