Law 5 seems clear:
"has the power to show yellow or red cards and, where competition rules permit, temporarily dismiss a player, from entering the field of play at the start of the match until after the match has ended, including during the half-time interval, extra time and penalties (penalty...