Yes, a substitution is considered a dead ball in soccer. A sub can come onto the field of play only with the ref’s permission, and when the ball has gone out of play.