No. Updating the system with yay or pacman cannot install automatically what is missing in the system.
You would need to find out what is missing, what package provides it and install it yourself.
As an example, see this thread for somewhat of a similar situation.