Yes, it is perfectly fine to chew gum while playing basketball. In fact, many players do it in order to stay focused and energized during the game. Chewing gum can help to keep your mind sharp and your body moving. It's also a good way to stay hydrated since you're constantly spitting out the gum.