yes it is allowed, even when it is a weird uncommon situation ;)
If somebody else, is thinking about it or is doing it in future and just reading it i recommend making an self report explaining the situation since we look closer to transfer when we know the players know each other(and maybe come to the conclusion, that they had a deal like if you give me amount X over the market rates for my player then i forfeit the important match).