If my penguin moves out of the school and then moves into the school during the same turn, does the movement count?

The penguin is considered to be out of school, if it finishes it's movement outside of the school. If the penguin is able to return to the school in the same movement, the penguin is not considered to be out of school and hence, the movement is successful.