Just to be totally clear, yay does use pacman to update repo packages. However, it also updates AUR packages. If you only use pacman, your would need to separately update repo packages and AUR packages separately.
4 Likes