That is legal, as long as your hand only touches the top hemisphere of the ball.
Chat with our AI personalities
If you dribble a Basketball higher than your shoulders that is called a carry and you turn over the ball.
Yes it is legal, but not very smart, because the defense can easily steal the ball when it is dribbled above the waist.