Hamsters are cute! My daughter picked long-haired hamsters so they wouldn't spook out her daddy, who thought short-haired ones looked too much like rodents.
They are also a lot of work, as any pet is, and guess who does the work.
If you socialize them - get them out every day and play with them gently - they are friendly. (If you leave them alone and don't socialize them, they will naturally be frightened of being handled and may bite in perceived self-defense.)
A male and a female will have lots of babies; if I recall correctly, when babies arrive, the male must live in a separate cage.
They need things to do in their cages (like wheels), and they MUST always have things to chew on because their teeth are growing all the time and will keep them from eating if they grow too long.
They love to play at night, and some of them are amazing escape artists. I could tell stories... but you don't want to read such a long post.
They do not live very long - this was what discouraged my daughter after several hamster pets. She had one who lived perhaps four years - but most of them didn't live longer than one year, and some lived for less time than that. One pair of babies lived one week; they were sick when we got them, but showed no symptoms for a few days. It was quite traumatic. There are hamster diseases with no cure.
You will need to teach your daughter how to handle Hammy gently, and supervise her EVERY time. They're so little that they can be hurt by careless children, and if let loose to play they much be watched EVERY SECOND. They can hide themselves in places you would never think to look.
Their residences need cleaning every few days - that'll be your job. You'll KNOW when to clean house! It will also be your job to make sure your daughter provides Hammy with good food and fresh water. Read the hamster books, but also find a vet who deals with little critters, and ask about feeding. My daughter's hamsters liked vegetables, but the veggies needed to be room temperature - I think. At least they could not be in a frozen state. (This was a long time ago, so I'm not sure any more, so ask your vet.)
Any child's pet is Mama's pet as well, so make sure you want the hamster as much as your daughter does. It'll be like having another very small child in the family. Have you considered a pet who might be a little sturdier...? An older kitten (several months old) can manage a five-year-old better than a hamster can - and might cuddle up to her at night.