Check in the pamac settings - default is to update the system when you install a package.
Installing a package using pacman -S
on a system which is not up-to-date may result in partial sync state which is unsupported.
It is your system - thus your responsibility. If you get issues from a partial sync - it is your headache.
Any help with issues requires your system to be fully updated from an up-to-date mirror.