That’s correct. The appropriate way to install software using using an Arch package manager, such as pacman, yay, or paru.
pacman is the Arch default, but does not include an AUR helper. Simply, you can use it to install official Arch packages.
sudo pacman -Syu somepackage
yay can do what pacman does, but also includes an AUR helper and other quality of life improvements. You can use this to install official Arch packages, and AUR (Arch User Repository) packages.
yay -Syu somepackage