Taking a rake in poker is not inherently illegal but instead is a common practice where in the gaming app or the casinos generate their income. It is legal as long as the establishment have proper permits and license to run them.