Is this right??

Rachael

My doctors office prescribed me unisom for my insomnia and when I went to the pharmacy they said this is what they had since it’s just over the counter. Is this the same thing and safe??