Of course
Games can also be influenced without obvious drama. The referee can just keep stopping the flow of the game, which usually benefits one team and frustrates one team
You see it in boxing all the time. Reminds me of that Joshua v Parker fight a while ago, that ref was clearly instructed to not let Parker hear Joshua, he would interfere and break up the action as soon as Parker got close and could work on the inside. They knew at range AJ had the reach advantage, so the referee made sure the fight was at range. It was blatant.
I believe similar happens in football all the time. Referees can dictate the tempo and flow of the game, they can frustrate one team etc, there’s no guarantee it’s going to always effect the final score but they can certainly give the game a nudge in a certain direction.