Exchanging in Jaipur
That is a perfectly acceptable action to take.

The rules at the bottom of the "Take Cards" page explicitly state:


  Players may never have more than 7 cards in their hand at the end of their turn.


Nowhere in the rules does it disallow gaining more than 7 cards to your hand during an exchange.