Does a female hamster need a male hamster?

no but your hamster does need a friend. Your hamster does not necessarily need a male hamster unless you need to breed it. It could just have a friend hamster boy or girl.