Yes, the goalie can play anywhere on the field but can’t touch the ball with their hands outside the penalty area. Some goalies have scored, and it’s not uncommon to see goalies join the attack on corner kicks late in the game when their team is down a goal.