If there are no other things to consider, then NO you should not trade pieces, when you have the space advantage.
It's basic strategy that you should try to keep the pieces on the board as you have more space to maneuver them around.
Your opponent, who is in a cramped position, probably wants to trade pieces (at least if they know what they are doing).
Now of course there could be other things to consider so you do not want to apply this strategy without giving any thought to other factors (just like any general guidelines of chess strategy).
I analysed my games and I realised that the eval bar always slowly dropped in the middlegame when I started to trade my pieces. So, I am now a little bit confused if the reason the eval bar dropped was because of the trading of pieces or just because of my inaccurate moves.
Please help me on this question, I have been struggling to pass 900 for a while now.