Can I Glue The Underlayment Down On My Sub Floor?

When installing underlayment this too like your laminate is floating. There is no glue or nails necessary to put the underlayment down.