Sleeping pills

Is taking sleeping pills okay while pregnant? I take Equate acetaminophen PM for pain and sometimes equate nighttime sleep aid. What do you think? Is it safe?