That is correct, but PECL is very different from yum. PECL actually does compile PHP components from source, but since they are extensions, they do not require recompiling the entire PHP code base. The same is true for PEAR.
yum is an update manager for rpm (Red Hat Package Manager) files, which are collections of pre-compiled binary files. PEAR and PECL can be used to install some PHP extensions, but it is not the same as using yum or rpm, which is what the original question was about.