Or could use the word 'rubber coating or adhesive' rather than glue. This is a question which most all newbie hookers wonder, since rugs slip on a slick floor. My answer is absolutely not. Using a glue on a mug mat, a hot pad, flower pin backs and like is okay using and Eileen's Glue. But a definite no for rugs on the floor.
If you want to have a more secure walking surface for a rug placed on the floor purchase a roll of a waffle weave rubber rug mat which may be purchased in different sizes. Below is one such product which has been under a rug in my kitchen near the back door for years.
Have a great evening.