I'd assume this would be agreed before the loan signing. Currently teams will ask the parent to allow the player to play in cup competitions.
If we loan a bright prospect to a club and we can recall him. Why would you allow him to play in a cup competition if he has a chance to play 1st team football.