No because when you switch out Encore's effect is lifted.
Source- Encore is freaking annoying and it keeps making me switch out, so...experience.
Edit: If you Baton Pass encore onto a Pokemon that is yet to use a move, nothing will happen, but if it has used a move it could only use the last move it used.
Also, this:
if a Pokemon is switched to via Baton Pass and then Encored, it gets locked onto Baton Pass itself if the Pokemon has it. The same occurs with U-turn.
Source