It does fit into the equation somewhat, but probably not enough. Beyond the base pay of any random background actor, their contribution and worth isn’t really tied to acting ability or, really, time at all - but their ability to get butts in seats to watch the show (i.e. what makes the show money).