Is it legal for the same person to hit the ball two times on the same return attempt as

Is it legal for the same person to hit the ball two times on the same return attempt as long as a teammate touches the ball in between the two hits? for example, timmy hits the ball to steve who hits the ball back to timmy who then hits it over. is that legal?