When a pitcher throws out a base runner is a foul ball, right?

No, when a pitcher throws out a base runner, it is not a foul ball. A base runner is considered out when they are tagged out by a fielder or when a fielder catches a fly ball before it touches the ground. A foul ball is a ball that is hit outside the lines of the field of play.