Not in the same battle.
If you have Mental Herb then the opponent can Taunt you activating Mental Herb, and then you use Trick Room, and then the opponent can target you with Encore, normally forcing you to either switch or undo your own Trick Room.
But if you use Z-Trick Room instead then you...